The use and learning of grayscale histogram in Halcon

Insert image description here
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.

Step 1: The currently open window

Guess you like

Origin blog.csdn.net/weixin_44301520/article/details/133471930