Introduction - If you have any usage issues, please Google them yourself
Given a single band image imgData.txt (ASCII format), to achieve the image processing and display.
Given condition:
(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);