Ask Your Question

Revision history [back]

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.

  • Store after each frame the coordinate of the center point.
  • Draw line between echt two following points.

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 );
}