简体   繁体   English

如何衡量两个灰度图像之间的相似度?

[英]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.

相关问题 如何衡量2个字符串的相似度 - How to measure the level of similarity of 2 strings 如何测量两个python代码块之间的相似性? - How to measure similarity between two python code blocks? 如何比较两个彩色图像之间的相似性? - how to compare similarity between two color images? 如何使用Spacy获得两个对齐文本的相似度的行级度量? - How to obtain a line-level measure of the similarity of two aligned texts with Spacy? 如何使用简单匹配系数找到两个句子之间的相似性度量? - How to find similarity measure between two sentences using Simple Matching Coefficient? 使用 Doc2Vec 测量两个文档之间的相似性 - Measure similarity between two documents using Doc2Vec 哪些方法返回两个函数之间的相似性的单个度量? - What methods return a single measure of similarity between two functions? 在python中测量两个rgb图像之间的相似性 - measuring similarity between two rgb images in python 在 Matlab/Python 中,两个图像之间的精细百分比(%)相似度指数 - Fine A Precentage(%) Similarity Index Between Two Images in Matlab/Python 如何找到两个 arrays 之间的相似性百分比 - how to find percentage of similarity between two arrays
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM