CBIR
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
hey guys i am beginner in image processing!!! I have a little problem in writing CBIR code please help me !!!!! I have written a matlab code which extract a feature of Query image in the form of matrix of 1x256x4 order and I have also created a database of images (a .mat file)which has same feature matrix of too many images!!!!! My problem is i am not getting how do I compare these two metrics for image restoration !!!! I found that many programmer use concept of Euclidean distance for it but I am not getting how to implement it in my case !!!
2 comentarios
David Young
el 16 de Nov. de 2011
I can't see how this will lead to image restoration. Do you mean image retrieval?
You will need to give more details of your feature matrix. Why is it 1x256x4 rather than simply 256x4? What does a given element represent?
Respuestas (1)
Yunas Qazi
el 2 de En. de 2013
Editada: Yunas Qazi
el 2 de En. de 2013
[val idx]=sort(sqrt(sum((A-B).^2)));
It will calculate Euclidean Distance for you.
Val contains the difference Value
and Id contains the index value.
Consider A the QueryImage Feature Vector and B the Image From DB Feature Vector.
0 comentarios
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!