Borrar filtros
Borrar filtros

How to measure % intensity difference between 2 image?

1 visualización (últimos 30 días)
Kyle
Kyle el 6 de Jul. de 2011
Comentada: suja rani el 27 de Mayo de 2017
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.

Respuesta aceptada

David Young
David Young el 6 de Jul. de 2011
imDiff = image1 - image2;
imSum = image1 + image2;
percentDiff = 200 * mean(imDiff(:)) / mean(imSum(:));
imAdjusted = (1 + percentDiff/100) * image3;
  4 comentarios
Kyle
Kyle el 7 de Jul. de 2011
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 el 27 de Mayo de 2017
why 200 is used for finding the percentage of difference

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by