图像处理35-两旋转矩形的交集

找出两个旋转矩形之间是否有任何交集。

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

如果存在,则也返回相交区域的顶点。

以下是交叉口配置的一些示例。 阴影图案表示相交区域,红色顶点由函数返回。

猜你喜欢

转载自blog.csdn.net/u013480226/article/details/123873319