Difference between Images and if statement

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 件のコメント

per isakson
per isakson 2015 年 3 月 13 日
編集済み: per isakson 2015 年 3 月 13 日
Doc says:
h is a handle to the HG image object created by imshowpair.
i.e. c is not a logical variable

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

質問済み:

2015 年 3 月 13 日

編集済み:

2015 年 3 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by