OpenCv IplImage how to clear or initialize the image to scalar
just use the cvSet
e.g if img is the IplImage object pointer with 3 channels.
cvSet(img, cvScalar(0,0,0));
will set each and every pixel to zero.
Becarefull with theĀ channels and cvScalar used.
Categories: C++, ImageProcessing, OpenCv
clear, initialize, iplImage, pixel