Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv::fitline

Hi guys

I am using opencv /C++ I am using cv::fitline for fitting one line btw different given 2D points.

    cv::fitLine(vecDraw,myLine,CV_DIST_L1,0,0.01,0.01);

after executing this code as you know my output is in "myLine" variable. my question:

do I need to use cv::Line after cv::fitline for drawing the line on one image or cv::fitline draw our line itself? if using cv::Line is necessary how can I use it regarding to "myLine" variable which containes my requested line?

thanks in advance

I need your help as soon as possible.