HW2, Computer problem, Part (b)
Histogram equalization
EECS 203A, Digital Image Processing. UCI. Fall 2004
Nasser Abbasi
Read the image file, cat.raw, and generate the histogram table, then the probability density function PDF table, then the cumulative density function CDF table. Then scan the image and generate new pixel gray level values by a lookup to the CDF.
Now set current directory to where the image is (same folder as this note book) and read the image file
Now that the image is read into data, we display it before processing it.
Conclusion
With histogram equalization applied, we see that new image contains more gray levels than the original level. Looking at generated plots of the new image histrogram and PDF and CDF we see from the CDF that the distribution of gray levels is uniform in the new image.
Created by Mathematica (October 19, 2004)