Skip to content

Histogram equalization and contrast stretching without using builtin library functions.

Notifications You must be signed in to change notification settings

Mr-TalhaIlyas/Histogram-Equalization-and-Contrast-Stretching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Histogram Equalization vs Contrast Stretching

Histogram Equalization

Histogram Equalization increases the global contrast of many images, especially when the usable data of the image is represented by close contrast values. Through this adjustment, the intensities can be better distributed on the histogram. This allows for areas of lower local contrast to gain a higher contrast. Histogram equalization accomplishes this by effectively spreading out the most frequent intensity values.source

Contrast Stretching

Contrast is a measure of the “range” of an image; i.e. how spread its intensities are. It has many formal definitions one famous is Michelson’s: He says contrast = ( Imax - Imin )/( Imax + I min ) source Contrast Stretching and Histogram Equalisation have the same goal: making the images to use entire range of values available to them.

Visual Results

Scripts for producing the results are in scripts.

Input Image

alt text

Histogram Equalization

alt text alt text alt text alt text

Contrast Stretching

alt text

About

Histogram equalization and contrast stretching without using builtin library functions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages