- Equalizes the contrast of an image using a histogram
- Spreads out the contrast
- Lighter areas become darker and darker areas become lighter
- Makes it easier to identify features in an image
- A cummulative distribution function is used to find the new gray value of a pixel
- Usage:
python histogram_equalization.py -i <inputf> [-o <outputf> -t <transferf> -a <histinf> -b <histoutf>]
-o
specifies output image path,-t
specifies transfer function plot path,-a
specifies input histogram path,-b
specifies output histogram path
Input Image
Output Image (after histogram equalization)
Transfer Function
Input Histogram
Output Histogram