1 | initial version |
Basically a smooth line can be retrieved by connecting each point in each frame. Since you actually store the center point of your bounding box, the drawing could be made fairly easy.
This will do exactly what you want right?
void MyLine( Mat img, Point start, Point end )
{
int thickness = 2;
int lineType = 8;
line( img,
start,
end,
Scalar( 0, 0, 0 ),
thickness,
lineType );
}