Ask Your Question

Revision history [back]

Change your drawMatch statement to

if ( match_centers.size() > 0 )
    drawMatch(object,frame,match_centers);

and that should fix it. You may also want to reset the vector to size 0 before you do tempMatch.