ofxOpenCv -- ofxCvHaarFinder should have a draw function #555

Closed
ofZach opened this Issue Apr 26, 2011 · 1 comment

2 participants

@ofZach

nothing fancy, but I have an implementation of ofxCvHaarFinder that draws, and it's useful for debugging. something like:

   void ofxCvHaarFinder::draw( float x, float y ) {
        // ofPushStyle(); ?
        ofEnableAlphaBlending();
        ofSetColor( 255,0,200,100 );
        glPushMatrix();

        glTranslatef( x, y, 0.0 );

        ofNoFill();
        for( int i=0; i<blobs.size(); i++ ) {
            ofRect( blobs[i].boundingRect.x, blobs[i].boundingRect.y, 
                   blobs[i].boundingRect.width, blobs[i].boundingRect.height );
        }

        glPopMatrix();
        //  ofPopStyle();
    }
@kylemcdonald

ofxCvHaarFinder::draw() has been added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment