How to measure % intensity difference between 2 image?

3 ビュー (過去 30 日間)
Kyle
Kyle 2011 年 7 月 6 日
コメント済み: suja rani 2017 年 5 月 27 日
Hi,
May i know how to calculate the percentage intensity difference between 2 image of the same size. Then i need to apply this % of intensity different to another image of different size.

採用された回答

David Young
David Young 2011 年 7 月 6 日
imDiff = image1 - image2;
imSum = image1 + image2;
percentDiff = 200 * mean(imDiff(:)) / mean(imSum(:));
imAdjusted = (1 + percentDiff/100) * image3;
  4 件のコメント
Kyle
Kyle 2011 年 7 月 7 日
yep i encountered that, when i tried the code. so i make the image to int16 so that it could store negative value as well.
Thanks
suja rani
suja rani 2017 年 5 月 27 日
why 200 is used for finding the percentage of difference

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by