Logarithm Contrast Enhancement/Scaling

[Laboratory]

Although logarithm contrast enhancement is very useful and widely used in displaying dark images, especially DFT Spectrums, care must be taken in scaling.

Below are two graphs of the function log(1+x). In the first case, the input values range from 0 to 21, and in the second case the input values range from 0 to 5300.

a)Dual slope function with amplitude 21; b)Logarithm of its value plus 1
a) b)

a)Dual slope function with amplitude 5300; b)Logarithm of its value plus 1
a) b)

This effect is visualized in the two images shown below which have the same range as in the above examples.

a)Original image: range 0 to 21; b)Log. enhanced
a) b)

a)Original image: range 0 to 5300; b)Log. enhanced
a) b)

Solution

A solution to minimize this effect is to multiply the original image by a factor larger than 50 before taking the logarithm. The result can be seen below where the above two images are logarithmic contrast enhanced but after using a scaling factor of 50.

a)Image: range 0 to 21, scale factor 50; b)Image: range 0 to 5300, scale factor 50
a) b)

Both logarithmic enhanced images are more similar.





Main DIP Menu
DIP Feedback Form
Copyright © 1997-1995 KRI, ISTEC, Ramiro Jordán, Roberto Lotufo. All Rights Reserved