Research Article

Lung Cancer Detection Using Image Segmentation by means of Various Evolutionary Algorithms

Algorithm 3

Histogram equalization.
(1)Obtain the histogram for the input image and find the probability mass function.
(2)Find the cumulative distributive function; from that, find the CDF according to gray levels.
(3)Find the new gray levels by using the following equation:
ā€‰CDFNew = CDF (number of gray levels āˆ’ 1).
(4)Map the new gray levels into a total number of pixels and plot the modified histogram.