码迷,mamicode.com
首页 > 其他好文 > 详细

拟合线/圆/矩形实例

时间:2020-05-23 11:44:19      阅读:56      评论:0      收藏:0      [点我收藏+]

标签:begin   regress   art   end   phi   tor   实例   col   and   

draw_point (WindowHandle, Row, Column)
gen_circle (Circle, Row, Column, 10.5)

draw_point (WindowHandle, Row1, Column1)
gen_circle (Circle, Row1, Column1, 10.5)

draw_point (WindowHandle, Row2, Column2)
gen_circle (Circle, Row2, Column2, 10.5)

draw_point (WindowHandle, Row3, Column3)
gen_circle (Circle, Row3, Column3, 10.5)

gen_contour_polygon_xld (Contour, [Row,Row1 ,Row2 ,Row3], [Column,Column1,Column2,Column3])

*拟合线
* fit_line_contour_xld(Contour, ‘tukey‘, -1, 0, 5, 2, RowBegin, ColBegin, RowEnd, ColEnd, Nr, Nc, Dist)
* gen_region_line (RegionLines, RowBegin, ColBegin, RowEnd, ColEnd)
* disp_line (WindowHandle, RowBegin, ColBegin, RowEnd, ColEnd)

*拟合圆
* fit_circle_contour_xld (Contour, ‘algebraic‘, -1, 0, 0, 3, 2, Row4, Column4, Radius, StartPhi, EndPhi, PointOrder)
* gen_circle (Circle1, Row4, Column4, Radius)

*拟合矩形
*注:在此需要本案中的点过少不能形成框形
fit_rectangle2_contour_xld (Contour, ‘regression‘, -1, 0, 0, 3, 2, Row5, Column5, Phi, Length1, Length2, PointOrder1)
gen_rectangle2 (Rectangle, Row5, Column5, Phi, Length1, Length2)

拟合线/圆/矩形实例

标签:begin   regress   art   end   phi   tor   实例   col   and   

原文地址:https://www.cnblogs.com/dingyd/p/12941478.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!