[英]Intersection of RotatedRect with Rect or RotatedRect OpenCV
I know it's possible to intersect two Rects in OpenCV in order to get the area of intersection. 我知道可以在OpenCV中相交两个Rect以获得相交区域。 Is there a way to intersect a RotatedRect with another Rect or RotatedRect in c++?
有没有一种方法可以在C ++中将RotatedRect与另一个Rect或RotatedRect相交?
You can use the rotatedRectangleIntersection function: 您可以使用rotatedRectangleIntersection函数:
cv::rotatedRectangleIntersection ( const RotatedRect & rect1,
const RotatedRect & rect2,
OutputArray intersectingRegion
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.