我知道可以在 OpenCV 中将两个 Rect 相交以获得相交区域。有没有办法在 C++ 中将 RotatedRect 与另一个 Rect 或 RotatedRect 相交?
最佳答案
您可以使用 rotatedRectangleIntersection 函数:
cv::rotatedRectangleIntersection ( const RotatedRect & rect1,
const RotatedRect & rect2,
OutputArray intersectingRegion
)
关于c++ - RotatedRect 与 Rect 或 RotatedRect OpenCV 的交集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30263335/