【发布时间】:2016-03-29 01:05:38
【问题描述】:
我的项目是一个关于图像的查询,我是你首先通过每个图像直方图在两个图像之间进行比较如果相同的人给我呈现给我的图片是相似的,但是问题每当他告诉我输入两个不是一样的
A=imread('C:\Users\saba\Desktop\images\q4.jpg');%reading images as array to variable 'a'&'b'
B = imread('C:\Users\saba\Desktop\images\q1.jpg');
j=rgb2gray(A);
i=rgb2gray(B);
subplot(2,2,1);imshow(A);
subplot(2,2,2);imshow(B);
subplot(2,2,3);imshow(j);
subplot(2,2,4);imshow(i);
if histeq(j)==histeq(i)
disp('The images are same')%output display
else
disp('the images are not same')
end
【问题讨论】:
-
q4 和 q1 是同一张图片吗?也许您需要找到相似度的度量而不是直方图的精确匹配?
标签: database matlab image-processing histogram