How to measure % intensity difference between 2 image?

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월 6일
yeah this works. However it prove my concept of normalizing image intensity for 2 image (for image mosaic application) wrong.
Thanks anyway. @@ now i got to think of another way of blending the image. As my final picture i can see a line tat where there is intensity different.
Do suggest if u have any idea.
Thanks
Make sure image1 and image2 are both of class double before you subtract - else you'll get a whole bunch of zeros.
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
why 200 is used for finding the percentage of difference

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

질문:

2011년 7월 6일

댓글:

2017년 5월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by