how can i write the code line for comparing two images that one image is 90% similar to another image

5 vues (au cours des 30 derniers jours)
how can i write the code line for comparing two images that one image is 90% similar to another image

Réponses (2)

Image Analyst
Image Analyst le 11 Fév 2013
Sounds like you already have that code. How did you get your 90% number?
There are a number of ways for determining how close images are to each other. PSNR is often used in compression studies. SSIM is often used in CBIR. There are others also. You can find these definitions and terms in Wikipedia or Google. Look for code in the File Exchange.

Bob
Bob le 11 Fév 2013
Your question is quite vague but from what i understand, it seems like you're gonna need correlation (corr2) for this i.e.
corr2(i,j);
  1 commentaire
Image Analyst
Image Analyst le 11 Fév 2013
Correlation won't do it. You can sometimes have a higher correlation for two different images than for the same image with itself. If you want to go the correlation route, you'd have to use normalized cross correlation, performed by normxcorr2() in the Image Processing Toolbox. I've posted demos using it here before - search for it if you're interested.

Connectez-vous pour commenter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by