登录
首页 » Visual C++ » 24BMP256ColorGray

24BMP256ColorGray

于 2020-07-01 发布 文件大小:3KB
0 222
下载积分: 1 下载次数: 154

代码说明:

  本代码实现的功能:24位位图(BMP)的灰度化。具体实现过程:打开图像文件,找到数据区(每3个字节代表一个象素的R,G,B值),循环扫描,根据RGB的权重,计算出灰度值. 如果要得到256色灰度图,则要新建一个调色板,修改信息头和文件头.(Realize the function of the code: 24-bit bitmap (BMP) of the gray. Concrete realization of the process: Open the image file, locate the data area (3 bytes per pixel on behalf of a R, G, B values), cyclic scan, according to the weight of RGB, gray value is calculated. If you want to get 256 colors grayscale, would create a new palette, modify the header and file header information.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • zhongzhilvboprograme
    中值滤波程序 对图象选定区域进行排列中值 滤波(median filtering of images selected procedures region with median filtering)
    2007-05-11 10:09:59下载
    积分:1
  • gaosi
    二维图形图像处理,高斯平滑的源代码,图像预处理(Two-dimensional graphic image processing, Gaussian smoothing of the source code, image preprocessing)
    2009-11-18 15:32:39下载
    积分:1
  • opencv4.3
    自主选择性的查看一幅图像中的部分区域的颜色直方图:允许用户在一幅图像中选择一个矩形区域,通过按住鼠标键画一个矩形,当鼠标放开是,高亮显示矩形框,同时在另一个独立的窗口中,使用画图函数画一个图表(选定区域的颜色直方图),分别用蓝,绿,红表示选中区域中每种颜色的像素数量。(Self-selective color in an image to view a partial area of ​ ​ the histogram: Allows the user to select a rectangular area in an image by holding down the mouse button to draw a rectangle when the mouse is released, the highlighted rectangle, Meanwhile in a separate window, using the drawing functions to draw a chart (selected color histogram region), respectively, with blue, green, red indicates the number of pixels in the selected area of ​ ​ each color.)
    2014-02-13 16:18:41下载
    积分:1
  • seisplot
    SEISPLOT 可以弥补FIMAGE软件带来的不足,即可以实时地显示更多剖面。而且还可以进行其它格式的转换。(seisplot is a software for seismic profile viewing.)
    2010-06-06 17:30:10下载
    积分:1
  • PT
    说明:  简单的数字图像处理程序,实现灰度化,二值化,边缘检测等(Simple digital image processing program, graying, binarization, edge detection, etc....)
    2012-02-28 18:49:50下载
    积分:1
  • pp
    说明:  利用vc++实现avi文件图像截取,avi图像即视屏图像(Use vc++ Achieve avi file image capture, avi video image that is, images)
    2008-12-17 23:26:31下载
    积分:1
  • CTImageReconstruction
    ct图像重建系统,本程序需要先安装和配置好vtk环境才能编译并以命令行方式运行。(ct image reconstruction system, the program you need to install and configure vtk environment to compile and run the command line.)
    2015-12-15 17:21:08下载
    积分:1
  • wnrVC6.0
    运动模糊图像 图像复原 维纳滤波复原 逆滤波复原 VC++6.0程序 代码(Motion-blurred image restoration image restoration Wiener filtering inverse filtering to recover VC++ 6.0 code)
    2020-12-12 11:29:17下载
    积分:1
  • hfjh
    本程序基于近景摄影测量,单片空间后方交会算法完成,用C++代码编写,内含有样本数据,以供试验。运行正常,注释完整。(This procedure based on the close shot photogrammetry, monolithic space resection algorithm, contains sample data, and written in c++ code for test. Running normally, notes complete.)
    2016-06-08 18:20:48下载
    积分:1
  • SnapTest
    有关数字图像处理的一些源码,可以实现一些处理图像的功能,但要配合数字摄像机使用(Digital image processing of the number of source, you can achieve the functions of image processing, but with the use of digital cameras)
    2009-05-28 23:12:23下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载