필터 지우기
필터 지우기

how can i compare two images which are almost the same

조회 수: 7 (최근 30일)
alex
alex 2014년 2월 5일
댓글: alex 2014년 2월 5일
hello!
I have a black and white binary image,i create a copy of this image and i compare these two images using histograms. The result is that these images are exactly the same.
I put a black dot(one pixel) somewhere in the first image an then i compare again the two images and of course the result is that they are not the same anymore.
the question is what can i do to compare two images who are generally the same,but they have very very small differences. Differences that you cant see with naked eyes.
Thank you very much

채택된 답변

tudor dima
tudor dima 2014년 2월 5일
You could try
>> i3 = xor(i1, i2);
>> imagesc(i3):
% and for some relative measure
>> d = sum(i3(:)) / numel(i3);
Of course, this returns no spatial info, but I'm not sure what exactly are you looking for.
  댓글 수: 1
alex
alex 2014년 2월 5일
you really helped me with your answer! actually in my case its more usefull the i3 = OR(i1, i2); thank you very much for the idea!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by