本文主要是介绍halcon算子——intersection计算直线与圆的交叉点,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
*求交叉区域
intersection (Region1, Region2, RegionIntersection)
*求circle与轮廓的交叉点
intersection_circle_contour_xld (Contour, CircleRow, CircleColumn, CircleRadius, 0, 6.28318, 'positive', Row, Column)
*求直线与轮廓的交叉点(计算的时候会自动延长直线,得到直线的延长线与轮廓的交叉点)
intersection_line_contour_xld (Contour, LineRow1, LineColumn1, LineRow2, LineColumn2, Row, Column, IsOverlapping)
如上图,想要计算红色直线与矩形轮廓的交叉点,得到了A、B两个点
*求两个圆的交叉点
intersection_circles (Row, Column, Row, 0, 6.28318, 'positive', Row, Column, Row, 0, 6.28318, 'positive', Row1, Column1, IsOverlapping)
*求直线和圆的交叉点
intersection_line_circle (LineRow1, LineColumn1, LineRow2, LineColumn2, CircleRow1, CircleColumn1, Radius, 0, 6.28318, 'positive', Row, Column)
*求两条直线的交叉点
intersection_lines (Line1Row1, Line1Column1, Line1Row2, Line1Column2, Line2Row1, Line2Column1, Line2Row2, Line2Column2, Row, Column, IsOverlapping1)
*求分割片段与直线的交叉区域
intersection_segment_line
这篇关于halcon算子——intersection计算直线与圆的交叉点的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!