Table of Contents

Method BoxPoints

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

BoxPoints(RotatedRect, OutputArray)

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.

public static void BoxPoints(RotatedRect box, OutputArray points)

Parameters

box RotatedRect

The input rotated rectangle. It may be the output of

points OutputArray

The output array of four vertices of rectangles.

BoxPoints(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.

public static Point2f[] BoxPoints(RotatedRect box)

Parameters

box RotatedRect

The input rotated rectangle. It may be the output of

Returns

Point2f[]

The output array of four vertices of rectangles.