CBIR
7 views (last 30 days)
Show older comments
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 Comments
David Young
on 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?
Answers (1)
Yunas Qazi
on 2 Jan 2013
Edited: Yunas Qazi
on 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 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!