Example Suppose there is image data 8x8, pixel value range 0 ~ 14 a total of 15 gray levels, the number of occurrences and histogram of each level are statistically obtained as shown in
the figure below.
The image histogram refers to the frequency value of the pixel value (0-255) of the entire image in the gray scale range. The histogram generated accordingly is called the image histogram-histogram. The histogram reflects the distribution of image grayscale. Is the statistical feature of the image.
3. Image histogram (is a method to improve image contrast, stretch the image gray value range)
Original image
The effect after histogram equalization
Histogram equalization is a method to improve the contrast of the image, stretch the gray value range of the image
How to achieve the histogram equalization How to achieve, through remap in the previous lesson, we know that we can map the image gray distribution from one distribution to another distribution, and then get the mapped pixel value. formula: