CBIR
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
David Young
il 16 Nov 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?
Risposte (1)
Yunas Qazi
il 2 Gen 2013
Modificato: Yunas Qazi
il 2 Gen 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 Commenti
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!