i have searched about line detection algorithm in opencv
and i found here good answer
but i cant understand this mathematical operations
lefty = int((-x*vy/vx) + y)
righty = int(((gray.shape[1]-x)*vy/vx)+y)
can anyone explain it to me please
i tried to understand anything ,
[vx,vy,x,y] = cv2.fitLine(cnt,cv2.cv.CV_DIST_L2,0,0.01,0.01)
and i have found that x,y is the center of the contour, but what is vx , vy ???.
Thanks :)