CImg
CImg copied to clipboard
CImg reference ... pdf file Section 6.6.4.5
CImg reference pdf file Section 6.6.4.5 Example codes
CImg
typedef unsigned char uchar; // Avoid space in the second parameter of the macro CImg_5x5x1 below.
CImg<> N(5,5); // Define a 5x5 neighborhood as a 5x5 image.
cimg_forC(src,k) // Standard loop on color channels
cimg_for5x5(src,x,y,0,k,N,float) // 5x5 neighborhood loop.
dest(x,y,k) = N.sum()/(5*5); // Averaging pixels to filter the color image.
CImgList
What exactly is achieved by "typedef unsigned char uchar" ? How does it "avoid space" or anything else ?