c - Draw rectangle over optical flow feature points -


i want draw rectangle on feature points optical flow process. i'm using cvseqpush method draw it:

cvseq* trackcarcontour = cvcreateseq(cv_32fc2, sizeof(cvseq), sizeof(cvpoint2d32f), contour_storage ); for(int i=0;i<numberoffeaturesfound;i++) {     cvseqpush( trackcarcontour, &cur_feature[i] ); } cvrect trackcarrect = cvboundingrect(trackcarcontour, 0); 

however, rectangle drawn not bound on points, instead shows on top left corner of image.

is there other way this? or, what's wrong way of doing this?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -