文件名称:灰度图像显示
介绍说明--下载内容来自于网络,使用问题请自行百度
函数说明 :
显示函数为showGrayImg(),三个参数分别为,图像指针,图像宽度,以及图像高度。
显示图像中,首先调用 setBitMapInfo()函数设置图像的文件头,用于setDIBitsToDevice()函数的调用。
特别注意,后面的对于图像宽度为4的整数倍的调整,并将图像边界对齐,即图像每一行的存储大小都为4的整数倍。
到此,此函数便可以用于在程序中随时显示函数了,等同于matlab中的imshow()函数。(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.)
显示函数为showGrayImg(),三个参数分别为,图像指针,图像宽度,以及图像高度。
显示图像中,首先调用 setBitMapInfo()函数设置图像的文件头,用于setDIBitsToDevice()函数的调用。
特别注意,后面的对于图像宽度为4的整数倍的调整,并将图像边界对齐,即图像每一行的存储大小都为4的整数倍。
到此,此函数便可以用于在程序中随时显示函数了,等同于matlab中的imshow()函数。(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.)
相关搜索: 灰度图像显示
(系统自动生成,下载前可以参看下载内容)
下载文件列表
灰度图像显示.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.