Comparing two images !!

Hi every one, I have two images and I want if there any difference between them I want to return 1 elso 0 , I know how to write it in python but can you help me to write in matlab...

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 2 月 26 日

0 投票

~isequal(FirstImage, SecondImage)
isequal would normally return 1 if they are identical and 0 otherwise, but you want the opposite of that, which is why the ~ is needed.

1 件のコメント

Abdullah AlHarbi
Abdullah AlHarbi 2017 年 2 月 27 日
Thank you sir it work, but if I want a specific difference for example, I had two images and I want if there a certain amount of change let say big change return 1 else 0, but for small amount of difference ignore it and return 0. did you get the idea :)?

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

カテゴリ

質問済み:

2017 年 2 月 26 日

コメント済み:

2017 年 2 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by