文件名称: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.