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

24BMP256ColorGray

于 2020-07-01 发布 文件大小:3KB
0 223
下载积分: 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 个回复

  • FillRegion
    填充区域图像,设置填充区域,填出图像的颜色(Filled regional images, set fill area, fill in the color of the image)
    2009-01-18 22:45:33下载
    积分:1
  • ImageDevelop_source
    vc++图像开发的附书光盘,包括众多的实例程序,每个程序都可以是功能完备的工具软件.(visual c++ image develop source code and instances)
    2010-09-25 10:53:59下载
    积分:1
  • Fisheye_calibration
    windows下c++鱼眼校正,debug内exe可直接运行看结果。内附参考文献,更详细文献可见论文《超大广角畸变图像的校正和展开》。(C++ fisheye correction under windows, debug within exe can run directly to see the results. With reference to the literature, more detailed literature can be seen in the paper "super wide-angle distortion image correction and expansion".)
    2017-11-13 16:35:41下载
    积分:1
  • VCgongchenganli
    说明:  VC的一些工程案例,包括车牌识别,人脸识别,图像处理基本操作等(car license recognization system)
    2010-04-14 16:25:39下载
    积分:1
  • doublemeter
    圆形图表的处理,包括大圆套小圆,双指针,针对设计仪表的初学者很有帮助(Treatment of circular charts, including the great circle sets of small round, double pointer, very helpful for beginners instrument design)
    2010-12-26 13:56:03下载
    积分:1
  • imageReadAndShow2
    imageReadAndShow2.cpp,读取asc文件,并在VTK中渲染显示...(read ASC File,using VTK)
    2011-05-26 15:38:29下载
    积分:1
  • CannyEdgeDetection(good)
    使用canny算子进行边缘检测的代码,效果很好(Using the canny edge detection operator code, good results)
    2009-09-14 15:50:36下载
    积分:1
  • ImgZoom
    OPENCV做图像变形的经典代码啊,适合比较初级的同学看看(OPENCV do image warping the classic code ah, suitable for elementary students to see more)
    2009-12-02 20:06:13下载
    积分:1
  • ch2_ex2_4
    载入一副图像并进行平滑处理与高斯或其他核函数进行卷积有效的减少图像信息内容(Loading an image and smoothed with a Gaussian or other nuclear convolution function effectively reduce the information content of the image)
    2016-08-23 16:01:08下载
    积分:1
  • faceDetection
    人脸检测与跟踪,我的毕业论文,使用我自己改进的ADABOOST和CAMSHIFT算法,附带我的毕业论文,opencv1.0或以上自己配置(face detection use adaboost and camshift algorithm,relevant paper enclosed,OPENCV1.0 is necessary)
    2013-01-27 20:59:45下载
    积分:1
  • 696516资源总数
  • 106446会员总数
  • 9今日下载