繁体   English   中英

RottRect与Rect或RotatedRect OpenCV的交点

[英]Intersection of RotatedRect with Rect or RotatedRect OpenCV

我知道可以在OpenCV中相交两个Rect以获得相交区域。 有没有一种方法可以在C ++中将RotatedRect与另一个Rect或RotatedRect相交?

您可以使用rotatedRectangleIntersection函数:

cv::rotatedRectangleIntersection    (   const RotatedRect &     rect1,
const RotatedRect &     rect2,
OutputArray     intersectingRegion 
)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM