| Cv2BoxPoints Method (RotatedRect) |
Finds the four vertices of a rotated rect. Useful to draw the rotated rectangle.
The function finds the four vertices of a rotated rectangle.This function is useful to draw the
rectangle.In C++, instead of using this function, you can directly use RotatedRect::points method. Please
visit the @ref tutorial_bounding_rotated_ellipses "tutorial on Creating Bounding rotated boxes and ellipses for contours" for more information.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static Point2f[] BoxPoints(
RotatedRect box
)
Public Shared Function BoxPoints (
box As RotatedRect
) As Point2f()
public:
static array<Point2f>^ BoxPoints(
RotatedRect box
)
static member BoxPoints :
box : RotatedRect -> Point2f[]
Parameters
- box
- Type: OpenCvSharpRotatedRect
The input rotated rectangle. It may be the output of
Return Value
Type:
Point2fThe output array of four vertices of rectangles.
See Also