how i compare one image from many images in one folder, please help me to send the code.

답변 (3개)

Image Analyst
Image Analyst 2014년 6월 15일
How exact do the comparisons need to be? How about subtracting them? Or use psnr or ssim? Or use SURF or CBIR methods?

댓글 수: 1

First check the sizes of all dimensions
[rows, columns, numberOfColorChannels] = size(yourImage);
if all those match up, then subtract them and look for differences
subtraction = double(image1) - double(image2);
if nnz(subtraction(:)) >= 1
% Then they don't match
else
% They do match
end

댓글을 달려면 로그인하십시오.

gagan deep
gagan deep 2014년 6월 15일
Like I have two folder in which one folder having an lena or cameraman image and when we compare lena image / cameraman image from another folder image if both have same then and is matched otherwise not matched
gagan deep
gagan deep 2014년 6월 15일
another one if i have one image on my desktop and that one i will compare with another folder in which 10-15 images placed. if desktop image is same than answer is matched otherwise not matched. please sir help i wan code of that concept. thanks

질문:

2014년 6월 15일

답변:

2014년 6월 15일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by