cv.rotatedRectangleIntersection - MATLAB File Help
cv.rotatedRectangleIntersection

Finds out if there is any intersection between two rotated rectangles

[intersectingRegion,result] = cv.rotatedRectangleIntersection(rect1, rect2)

Input

Output

Finds out if there is any intersection between two rotated rectangles. If there is then the vertices of the intersecting region are returned as well.

See also