文件名称:pixel
- 所属分类:
- 图形图像处理(光照,映射..)
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2013-11-12
- 文件大小:
- 3.86mb
- 下载次数:
- 0次
- 提 供 者:
- 苡*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
用一个简单的例子来说明如何遍历图像:减少图像中的颜色数目。
彩色图片由三个通道,由于每一个强度都是一个8位的unsigned char 表示,所以所有可能的颜色数目为256*256*256,很是庞大。为了降低分析的复杂度,降低图片的颜色数目是有用的。
这个算法很简单,对图片中每个像素的每一个通道,将其值除以N(整数除法,舍去余数),然后乘以N,这样就能得到不大于原始像素值的N的最大倍值。-Use a simple example to illustrate how to traverse the image: reducing the number of colors in the image. Color picture from the three channels, since each is an 8-bit intensity unsigned char, so all the possible number of colors is 256* 256* 256, it is enormous. To reduce the complexity of analysis, reduce the number of colors the image is useful. This algorithm is very simple, for each pixel in the image for each channel, its value is divided by N (integer division, discarding the remainder) and then multiplied by N, so that you can get the original pixel value is not greater than the maximum magnification of N values.
彩色图片由三个通道,由于每一个强度都是一个8位的unsigned char 表示,所以所有可能的颜色数目为256*256*256,很是庞大。为了降低分析的复杂度,降低图片的颜色数目是有用的。
这个算法很简单,对图片中每个像素的每一个通道,将其值除以N(整数除法,舍去余数),然后乘以N,这样就能得到不大于原始像素值的N的最大倍值。-Use a simple example to illustrate how to traverse the image: reducing the number of colors in the image. Color picture from the three channels, since each is an 8-bit intensity unsigned char, so all the possible number of colors is 256* 256* 256, it is enormous. To reduce the complexity of analysis, reduce the number of colors the image is useful. This algorithm is very simple, for each pixel in the image for each channel, its value is divided by N (integer division, discarding the remainder) and then multiplied by N, so that you can get the original pixel value is not greater than the maximum magnification of N values.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
pixel\Debug\pixel.exe
.....\.....\pixel.pdb
.....\ipch\pixel-84a858bd\pixel-ec06bdce.ipch
.....\pixel\Debug\CL.read.1.tlog
.....\.....\.....\CL.write.1.tlog
.....\.....\.....\link-cvtres.read.1.tlog
.....\.....\.....\link-cvtres.write.1.tlog
.....\.....\.....\link-rc.read.1.tlog
.....\.....\.....\link-rc.write.1.tlog
.....\.....\.....\link.read.1.tlog
.....\.....\.....\link.write.1.tlog
.....\.....\.....\pixel.lastbuildstate
.....\.....\.....\pixel.log
.....\.....\.....\pixel.obj
.....\.....\.....\stdafx.obj
.....\.....\.....\vc110.idb
.....\.....\.....\vc110.pdb
.....\.....\pixel.cpp
.....\.....\pixel.vcxproj
.....\.....\pixel.vcxproj.filters
.....\.....\ReadMe.txt
.....\.....\stdafx.cpp
.....\.....\stdafx.h
.....\.....\targetver.h
.....\pixel.sdf
.....\pixel.sln
.....\pixel.v11.suo
.....\ipch\pixel-84a858bd
.....\pixel\Debug
.....\Debug
.....\ipch
.....\pixel
pixel