How to normalise Image intensity?
Afficher commentaires plus anciens
Hi,
I have 2 picture of the same object taken on different time. There are intensity different between the 2 picture(minor changes in lighting condition.)
Is there a way for me to make both to have the same intensity? Eg, Im2's intensity follows Im1's intensity?
Im1:

Im2

Thanks
Réponse acceptée
Plus de réponses (2)
Sean de Wolski
le 1 Juil 2011
Inormalized = double(I)./double(max(I(:)));
Doing this to both will give them both the same maximum intensity (1).
1 commentaire
Kyle
le 2 Juil 2011
Image Analyst
le 9 Juil 2011
1 vote
If you really want to match intensities of gray scale images, meaning that the histograms of the two images have EXACTLY the same histograms after transforming one image, then you need to look at my "Custom-shaped histogram" File Exchange submission: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 You could use this on each color channel independently for what will probably give very acceptable results.
If you want to match histograms of a color image, I direct you to the Grundland/Dodgson method: http://www.eyemaginary.com/Portfolio/ColorHistogramWarp.html
Catégories
En savoir plus sur Histograms dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!