Table of contents
-
- Step 1: Display the grayscale image or mono image of the currently opened window
- Step 2: After activation, we can adjust the mid-blue and red vertical lines of the grayscale value of the histogram on the right to obtain the feature display within the range of the grayscale value on the left image.
- Step 3: Insert code:
- Summary: Its intuitive purpose is to check the distribution of grayscale!
The grayscale histogram is what we often use to capture the intuitive feeling of different grayscale values. It is a statistical histogram of grayscale features.
Abscissa: 0~255 represents the range of gray value
For the range of 0-255, generally speaking, 0 represents black and 255 represents white. In a grayscale image, the pixel value range is from 0 to 255, representing different gray levels. When the pixel value is 0, the pixel is pure black; when the pixel value is 255, the pixel is pure white.
Vertical coordinate: It is the statistics of the number of pixels under different grayscale values.
Then the above abscissa and ordinate give us a hint. The image must be a grayscale image or a mono image. If it is a color image, we cannot obtain the statistics of the grayscale value. Of course, we can convert the grayscale image or split the channel. method to further obtain grayscale images or mono images. So let’s take a look at how to use it.