Description: 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.
To Search:
File list (Check if you may need any files):
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