Description: Function specification:
The display function is showGrayImg (), and the three parameters are the image pointer, the image width, and the image height.
In the display image, the first file that calls the setBitMapInfo () function to set the image is used for the call of the setDIBitsToDevice () function.
Special attention is given to the subsequent integer adjustment of the image width of 4 and the alignment of the image boundaries, i.e., the storage size of each row of the image is an integral multiple of 4.
Here, this function can be used to display functions at any time in a program, equivalent to the imshow () function in matlab.
To Search:
File list (Check if you may need any files):
灰度图像显示.txt