簡體   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