pub fn box_points(
box_: RotatedRect,
points: &mut impl ToOutputArray,
) -> Result<()>Expand description
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 [tutorial_bounding_rotated_ellipses] “tutorial on Creating Bounding rotated boxes and ellipses for contours” for more information.
§Parameters
- box: The input rotated rectangle. It may be the output of [minAreaRect].
- points: The output array of four vertices of rectangles.