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

24BMP256ColorGray

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

  • 1
    说明:  线形骨架的综述类文献,着重强调定义属性和应用(Curve-skeleton properties, applications, and algorithms)
    2010-06-16 13:53:59下载
    积分:1
  • FULIYE
    能够计算傅里叶描述子,并对图像进行重构,实现对目标图像和源图像的辨认(Fourier descriptors can be calculated, and the image reconstruction, image and the source image to target identification)
    2020-11-05 13:49:50下载
    积分:1
  • zz
    说明:  实现机器视觉双目标定,三维重建等算法,具有很好地擦考价值( Robot with two cameras to switch recognition system. (Note that not binocular vision) and the reference used opencv1.0 cmv. )
    2012-10-28 17:09:47下载
    积分:1
  • histogrameq
    VC做的图像处理方面的一些代码,仅供参考(VC do image processing of some code, only supplies the reference )
    2012-03-15 10:09:25下载
    积分:1
  • 12.2
    (1)在工具栏中点击“打开”功能出现文件打开窗口,用户选择一幅bmp图片后在指定区域居中显示该图片,若图片尺寸小于指定区域则按原始大小显示;若大于则按合适比例显示。 (2)鼠标指针在图片上停留时显示为十字形,同时在控件下方固定位置显示鼠标所在的图像x坐标和y坐标(如:50,100),以图片左上为坐标原点。 (3)在工具栏中可以点击控件实现在图片上绘制一次直线、矩形或圆等图形,在绘图过程中要求图片和图形一直可见,不能出现刷新痕迹,绘制的图形可以任意修改形状。 (4)可以任意选择图形线条的类型(虚线或直线)、颜色(三种)及粗细(三种),要求选择方式可以叠加,绘制过程要求可任意连续执行。 (5)在工具栏中点击“保存”功能出现文件保存窗口,用户可以选择保存路径来保存当前图片操作结果(包括图片和图形)。 (6)点击“关闭”功能,关闭当前图片,若操作结果尚未保存则必须弹出对话框提示用户进行保存。 ((1) in the tool bar, click on Open function has the file open window, the user selects a bmp image to center the picture in the designated area, if the image size is smaller than the specified area press the original size if more than press the appropriate scale display. (2) is shown as a cross when the mouse pointer over the image, while displaying an image x and y coordinates of the mouse cursor in a fixed position below the control (eg: 50,100) to image the upper left of the coordinate origin. (3) in the toolbar you can click controls to achieve a draw straight lines, rectangles or circles and other graphics on the picture, the requirements of pictures and graphics in the drawing process has been seen, it can not appear refreshed traces drawn graphics can be modified shape. (4) can choose the type of graph line (dashed or straight), color (three kinds) and thickness (three kinds), asked to choose the way can be superimposed, can arbitrarily draw process requires continuous exe)
    2015-10-23 12:16:41下载
    积分:1
  • VC-tu-xiang-chu-li
    图形图像处理算法大全,包含各种算法的源码,只要经过简单修改就可变为程序(Daquan graphic image processing algorithms, including the source code for various algorithms, as long as you can into a program after a simple modification )
    2011-05-20 16:45:34下载
    积分:1
  • PhotoSee
    vb6 project photo see edit
    2012-11-18 21:04:58下载
    积分:1
  • Eyes
    图像处理实习(针对遥感影像),包含许多经典的图像处理功能,比如多种植被指数计算、小波变换、镶嵌、图像分类等(Image processing internship (for remote sensing images), contains many classic image processing functions, such as a variety of vegetation indices, wavelet transform, mosaic, image classification, etc.)
    2014-03-27 22:36:07下载
    积分:1
  • rihua.code
    本程序为图像锐化的经典程序,源码里有详细的标注。(the procedures for sharpening images of the classic procedures are detailed source of tagging.)
    2007-06-04 12:04:49下载
    积分:1
  • Smooth
    对图像进行平滑处理,像各种滤波的方法,如均值滤波法、中值滤波法(Smoothing the image, like the various filtering methods, such as mean filtering, median filtering method)
    2010-07-16 13:17:31下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载