[英]How to measure the similarity between two gray level images?
I have 2 gray-level images and want to measure the similarity between two images using subtraction and opencv.我有 2 个灰度图像,想使用减法和 opencv 来测量两个图像之间的相似性。 I tried to subtract the images and count black pixels but some values may be under 0 so I guess they will be displayed as 0 and that means this way is not so accurate.
我试图减去图像并计算黑色像素,但有些值可能低于 0,所以我猜它们将显示为 0,这意味着这种方式不太准确。 I need a way to find the percentage using subtraction.
我需要一种方法来使用减法找到百分比。
There are many ways to measure similarity or differences in images.有许多方法可以测量图像的相似性或差异。 The request you are asking is specifically for L1 Differences .
您要求的请求专门针对L1 Differences 。
For a quick and simple solution just take the absolute value.对于一个快速简单的解决方案,只需取绝对值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.