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

24BMP256ColorGray

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

  • miyao
    本文提出了基于二维混沌映射的数字图像水印算法,混沌具有随机性、似噪声及对初始条件的极端敏感性等特点。将经过二维混沌映射置乱后的数字水印信号嵌入图像小波域的低频系数,实现了数字水印的隐蔽性、保密性和稳固性;利用二维混沌映射Arnold变换对水印信号进行置乱,不仅增强了水印信号保密性,同时有效提高了视觉上抵抗图像剪切攻击的能力。(In this paper, two-dimensional chaotic map based on digital image watermarking algorithm, Chaos with random noise and the likelihood of extreme sensitivity to initial conditions and so on. Two-dimensional chaotic map will be scrambling after the digital watermark embedded image signal of the low-frequency coefficients in wavelet domain, the realization of a digital watermark hidden, security and stability the use of two-dimensional chaotic map on Arnold transform scrambling watermark signal, not only enhances the confidentiality of the watermark signal at the same time improve the visual image shear resistance attacks.)
    2009-06-28 10:11:45下载
    积分:1
  • FIR.C
    FIR滤波器的C语言实现 C语言源程序代码及解析(FIR filter, the C language realization C source code and analytical)
    2010-05-28 17:13:54下载
    积分:1
  • Chromosome_counter
    数学形态学及相关算法的C语言实现实例 源代码调用OpenCV的cxcore和highgui两个库,应用C语言编写,实现对染色体图像中染色体数目的统计。代码中的核心算法为数学形态学的重要算法——开运算、闭运算(腐蚀和膨胀)。包含腐蚀处理、膨胀处理、自适应中值滤波、微分直方图法确定二值化阈值、种子填充算法等图像处理算法的C语言实现,值得参考。(Mathematical Morphology and related algorithms realize the C language source code examples of cxcore call OpenCV and highgui two libraries, the application of C language to realize pairs of chromosomes in the chromosome number of image statistics. The core algorithm code for an important mathematical morphology algorithms- open operation, closing operation (corrosion and expansion). Contains corrosion treatment, expansion of treatment, adaptive median filter, histogram method to determine differential binarization threshold, the seed fill algorithm, such as image processing algorithms realize the C language, it is also useful.)
    2007-09-17 17:11:33下载
    积分:1
  • erode
    C语言数学形态学的腐蚀运算,同时适用于二值图像与灰度图像。(C language mathematical morphology erosion operation also apply to binary images and gray-scale image.)
    2009-11-14 14:43:40下载
    积分:1
  • freeimage
    说明:  图形图像出来库文件,挺好用的,直接包含进工程就可以用了 (Graphic images from the library files, good used directly included into the project can be used)
    2009-08-15 20:30:56下载
    积分:1
  • lab2
    This program draws an image from a bmp file
    2014-05-26 21:59:34下载
    积分:1
  • headtrack
    用粒子滤波实现视频中人头跟踪算法,有训练好的人头分类器。()
    2021-02-05 21:29:57下载
    积分:1
  • machine-vision-algorithm-
    包含基于VC++的各种图像、视频处理的源码如图像增强、灰度位图处理、图像平移旋转、bmp2txt等程序源码(Contains various images VC++ based video processing source code, such as image enhancement, grayscale bitmap processing, image translation and rotation, bmp2txt program source code, etc.)
    2014-05-03 14:54:22下载
    积分:1
  • demo
    图像拼接小程序,使用直接对比的方法进行拼接并用加权平均的方法进行融合 (a simple program for image splicing )
    2012-04-25 09:58:43下载
    积分:1
  • 3D-MIP---5533
    可以在VTK下进行三维重建的DICOM数据(Three-dimensional reconstruction can be carried out in the VTK DICOM data)
    2020-12-17 16:29:12下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载