MATLAB File Help: cv.rotatedRectangleIntersection Index
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 interesecting region are returned as well.