How to measure % intensity difference between 2 image?

2 次查看(过去 30 天)
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 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