文件名称:TrueColor2SingleBand
- 所属分类:
- 图形图像处理(光照,映射..)
- 资源属性:
- [C/C++] [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 6kb
- 下载次数:
- 0次
- 提 供 者:
- 章**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
VC/C++源码,图形处理,图像转换
VC实现真彩色图像转换为8位图像,RGB三个波段的灰度通过一个线性变换式计算为单波段灰度。
关于代码:
DWORD _width1 = WIDTHBYTES(width*8) //保存的8bits位图保存宽度
DWORD bytesCount1 = _width0*height //存储该真彩色位图数据段所用的字节数,不是像素数
DWORD bytesCount2 = _width1*height //存储8bits位图数据段所用字节数
// stdafx.obj will contain the pre-compiled type information-stdafx.cpp : source file that includes just the standard includes
TrueColor2SingleBand.pch will be the pre-compiled header
stdafx.obj will contain the pre-compiled type information
VC实现真彩色图像转换为8位图像,RGB三个波段的灰度通过一个线性变换式计算为单波段灰度。
关于代码:
DWORD _width1 = WIDTHBYTES(width*8) //保存的8bits位图保存宽度
DWORD bytesCount1 = _width0*height //存储该真彩色位图数据段所用的字节数,不是像素数
DWORD bytesCount2 = _width1*height //存储8bits位图数据段所用字节数
// stdafx.obj will contain the pre-compiled type information-stdafx.cpp : source file that includes just the standard includes
TrueColor2SingleBand.pch will be the pre-compiled header
stdafx.obj will contain the pre-compiled type information
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TrueColor2SingleBand\ReadMe.txt
....................\Resource.h
....................\StdAfx.cpp
....................\StdAfx.h
....................\TrueColor2SingleBand.clw
....................\TrueColor2SingleBand.cpp
....................\TrueColor2SingleBand.dsp
....................\TrueColor2SingleBand.dsw
....................\TrueColor2SingleBand.h
....................\TrueColor2SingleBand.rc
TrueColor2SingleBand
....................\Resource.h
....................\StdAfx.cpp
....................\StdAfx.h
....................\TrueColor2SingleBand.clw
....................\TrueColor2SingleBand.cpp
....................\TrueColor2SingleBand.dsp
....................\TrueColor2SingleBand.dsw
....................\TrueColor2SingleBand.h
....................\TrueColor2SingleBand.rc
TrueColor2SingleBand