halcon 点到一条线的距离

*获取窗口句柄
dev_get_window (WindowHandle)
draw_point (WindowHandle, Row2, Column2)
gen_cross_contour_xld (Cross2, Row2, Column2, 6, 0.785398)
draw_line (WindowHandle, Row11, Column11, Row21, Column21)
gen_region_line (RegionLines, Row11, Column11, Row21, Column21)
*计算一个点和一条线之间的距离。
distance_pl (Row2, Column2, Row11, Column11, Row21, Column21, Distance1)

 

你可能感兴趣的:(Halcon)