文件名称:Lena
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.13mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
2、 转换为灰度图像。
这个算法是依照彩色图转化为灰度图像的方式:
灰度值 = 0.3*R+0.59*G+0.11*B
用两重循环遍历截取的图片,对于每一个象素点,用MFC的函数取得其COLORREF形式的颜色值,从中分解出R、G、B三种颜色的值,计算出对应的灰度值后,赋给R、G、B即可。完成遍历后刷新图片就可以看到转换后的灰度图像。
-2, converted to grayscale images. This algorithm are in accordance with the color map into a gray image of the way: gray value = 0.3* R+0.59* G+0.11* B with double cycle traversal intercepted picture, for each pixel, using MFC function obtained their forms of COLORREF color value, from decomposition of the R, G, B three color values, calculate the corresponding gray-scale value, assigned to R, G, B can be. After the completion of traversal can be seen on the picture to refresh the converted gray image.
这个算法是依照彩色图转化为灰度图像的方式:
灰度值 = 0.3*R+0.59*G+0.11*B
用两重循环遍历截取的图片,对于每一个象素点,用MFC的函数取得其COLORREF形式的颜色值,从中分解出R、G、B三种颜色的值,计算出对应的灰度值后,赋给R、G、B即可。完成遍历后刷新图片就可以看到转换后的灰度图像。
-2, converted to grayscale images. This algorithm are in accordance with the color map into a gray image of the way: gray value = 0.3* R+0.59* G+0.11* B with double cycle traversal intercepted picture, for each pixel, using MFC function obtained their forms of COLORREF color value, from decomposition of the R, G, B three color values, calculate the corresponding gray-scale value, assigned to R, G, B can be. After the completion of traversal can be seen on the picture to refresh the converted gray image.
相关搜索: lena
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Lena代码.rar
Lena作业书面报告.doc
Lena作业书面报告.doc
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
