| Cv2RotatedRectangleIntersection Method (RotatedRect, RotatedRect, Point2f) |
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.
Below are some examples of intersection configurations.
The hatched pattern indicates the intersecting region and the red
vertices are returned by the function.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static RectanglesIntersectTypes RotatedRectangleIntersection(
RotatedRect rect1,
RotatedRect rect2,
out Point2f[] intersectingRegion
)
Public Shared Function RotatedRectangleIntersection (
rect1 As RotatedRect,
rect2 As RotatedRect,
<OutAttribute> ByRef intersectingRegion As Point2f()
) As RectanglesIntersectTypes
public:
static RectanglesIntersectTypes RotatedRectangleIntersection(
RotatedRect rect1,
RotatedRect rect2,
[OutAttribute] array<Point2f>^% intersectingRegion
)
static member RotatedRectangleIntersection :
rect1 : RotatedRect *
rect2 : RotatedRect *
intersectingRegion : Point2f[] byref -> RectanglesIntersectTypes
Parameters
- rect1
- Type: OpenCvSharpRotatedRect
First rectangle - rect2
- Type: OpenCvSharpRotatedRect
Second rectangle - intersectingRegion
- Type: OpenCvSharpPoint2f
The output array of the verticies of the intersecting region.
It returns at most 8 vertices.
Return Value
Type:
RectanglesIntersectTypes[Missing <returns> documentation for "M:OpenCvSharp.Cv2.RotatedRectangleIntersection(OpenCvSharp.RotatedRect,OpenCvSharp.RotatedRect,OpenCvSharp.Point2f[]@)"]
See Also