Draw circle into ofxCvGrayscaleImage


I’m doing a blobdetection with countourFinder. I want to make an cicle area that’s not visible for the contourfinder.
How can I draw an circle into into the ofxCvGrayscaleImage ?


Hi mindthegap,

Probably the best way would be to convert to ofPixels, draw in a circle, and back to ofxCvGrayscaleImage.

ofPixels pix;
ofxCvGrayscaleImage cv_pix;
pix = cv_pix.getPixels();
// draw in circle somehow (setting individual pixels or using an fbo to draw a circle)
// pix = pix_with_circle;

// set the pixels back again

oh fine, I thought I have to draw the circle with pixels…