: Special Effects
: Visual C++
: 2017-07-19 14:37:32
Description: Given a single band image imgData.txt (ASCII format), to achieve the image processing and display.
(1) clrTbl.txt file is a color look-up table, size is 256X3, you can represent the color of RGB in 256.
(2) the data in the ImgData.txt file is the image, each of which represents the color index number of a pixel, and the corresponding RGB color value is found in the color lookup table (clrTbl.txt file) through the index number.
(3) median filtering: a nonlinear smoothing technique that sets the gray value of each pixel to the median of all pixel gray values within a neighborhood window (here, 3X3).
(4) functions that display pixels on the screen: SetPixel (HDC, drawDevice, long, X, long, Y, COLORREF, rgbVal);