I know it's possible to intersect two Rects in OpenCV in order to get the area of intersection. Is there a way to intersect a RotatedRect with another Rect or RotatedRect in c++?
You can use the rotatedRectangleIntersection function:
cv::rotatedRectangleIntersection ( const RotatedRect & rect1,
const RotatedRect & rect2,
OutputArray intersectingRegion
)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.