draw a plot between two center points in real-time
If I want to draw a line between (center.x , center.y)in the current frame and (center.x , center.y) in the previous frame..should I every time that the code runs keep it in a vector and then take them two by two and use cvPoint() and cvLine() ?
Is this the correct way to do that by using opencv?