Difference between Images and if statement

1 view (last 30 days)
Adem Kikaj
Adem Kikaj on 13 Mar 2015
Edited: per isakson on 13 Mar 2015
a = imread('Image1.jpg');
b = imread('Image2.jpg');
c = imshowpair(a,b,'diff');
I have this variables now I want to do something like this:
If c==true
haveDifference = true;
else
haveDifference = false;
end
This don't work it's says it's false even they have difference!
  1 Comment
per isakson
per isakson on 13 Mar 2015
Edited: per isakson on 13 Mar 2015
Doc says:
h is a handle to the HG image object created by imshowpair.
i.e. c is not a logical variable

Sign in to comment.

Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!