how can i write the code line for comparing two images that one image is 90% similar to another image
5 ビュー (過去 30 日間)
古いコメントを表示
how can i write the code line for comparing two images that one image is 90% similar to another image
0 件のコメント
回答 (2 件)
Image Analyst
2013 年 2 月 11 日
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.
0 件のコメント
Bob
2013 年 2 月 11 日
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 件のコメント
Image Analyst
2013 年 2 月 11 日
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.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!