image comparisson matlab
显示 更早的评论
please Mr... could u explain to me what's the procedure in matlab to compare 2 images, (based on color or anythig that allows me to compare them), taken by a webcam, and saved in a folder???... really thankfull for ypu attention to my question.. :D
采纳的回答
更多回答(2 个)
Walter Roberson
2011-12-8
1 个投票
A slightly more sophisticated method than isequal() is to convert the images to double precision, subtract them, and calculate the average difference between them. If the average difference is less than the statistical noise of the system, one could postulate that they are the same.
Caution: if you do this and there happens to be a pixel which is (say) fully red in one image where it was fully black in the other, then even though that is a large difference in that one point, when that error is averaged over all of the pixels, the statistical error test might well still easily be met. Because of this, the difference alone is not usually the measure used. Key term for you to investigate: MSE
Image Analyst
2011-12-9
1 个投票
The structural similarity (SSIM) index is a method for measuring the similarity between two images. The SSIM index is a full reference metric, in other words, the measuring of image quality based on an initial uncompressed or distortion-free image as reference. SSIM is designed to improve on traditional methods like peak signal-to-noise ratio (PSNR) and mean squared error (MSE), which have proved to be inconsistent with human eye perception.
The SSIM metric is calculated on various windows of an image. The measure between two windows x and y of common size N×N is:
1 个评论
Yipeng Liu
2013-4-19
Do you know why there are negative value (like -0.05 at some point) in the ssim_map using the SSIM_index.m? It is not consistent to the paper description.
Thank you!
类别
在 帮助中心 和 File Exchange 中查找有关 Display Point Clouds 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!