CBIR
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
David Young
le 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?
Réponses (1)
Yunas Qazi
le 2 Jan 2013
Modifié(e) : Yunas Qazi
le 2 Jan 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 commentaires
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!