比较具有不同亮度的图像

时间:2020-06-07 05:20:06

标签: image opencv

我想确定两个图像是否是同一艺术品的图片(以下是日本画家奈良美智的两幅照片)

file1

file2

我使用特征匹配和仿射变换对齐了两个图片。因此,图像现在具有相同的大小,并且据称对齐得很好。

enter image description here enter image description here

,但是在某些情况下(例如在此情况下),两张图片的亮度不同。 直接比较灰度图像不起作用。

我尝试过平等的历史,这使情况更加糟糕 enter image description here enter image description here

我还尝试了其他方法,包括:

功能匹配中的匹配数;

sim https://en.wikipedia.org/wiki/Structural_similarity

phash https://www.phash.org/

它们都不能很好地工作。

我的猜测是,我需要首先消除亮度差异。但是我不确定该怎么做。有任何想法吗?谢谢

0 个答案:

没有答案