Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

no, fitLine won't draw anything by itself.

if you got a Vec4f myLine, the first 2 elements are the direction vec, the next 2 are a point on the line, so to draw a line with (approx.) length 5:

line( img, Point(myLine[2],myLine[3]), Point(myLine[2]+myLine[0]*5,myLine[3]+myLine[1]*5, ... )