Draw circle into ofxCvGrayscaleImage

Hello,

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 ?

regards

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
cv_pix.setFromPixels(pix);

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