Thursday, April 2, 2009

DIP using OpenCV #2 : Clearing an image


// clear the image

cvSet( IplImage* img, cvScalar(0,0));

// this will set each and every pixel to zero

Another simple method I recently became aware of:

cvZero( IplImage* img );

No comments:

Post a Comment

Followers