0
我已經(發現Hough變換)rho
,theta
代表行如果可能,在圖像範圍內)從它?找上線的點與極座標表示的最有效方法
我已經(發現Hough變換)rho
,theta
代表行如果可能,在圖像範圍內)從它?找上線的點與極座標表示的最有效方法
def get_points_on_polar_line(rho,theta):
a=np.cos(theta)
b=np.sin(theta)
x0=np.array((rho * a, rho * b))
return (x0,x0+(-b, a))