Struct opencv::core::RotatedRect

source ·
pub struct RotatedRect { /* private fields */ }
Expand description

The class represents rotated (i.e. not up-right) rectangles on a plane.

Each rectangle is specified by the center point (mass center), length of each side (represented by #Size2f structure) and the rotation angle in degrees.

The sample below demonstrates how to use RotatedRect: RotatedRect_demo image

See also

CamShift, fitEllipse, minAreaRect, CvBox2D

Implementations§

default constructor

full constructor

Parameters
  • center: The rectangle mass center.
  • size: Width and height of the rectangle.
  • angle: The rotation angle in a clockwise direction. When the angle is 0, 90, 180, 270 etc., the rectangle becomes an up-right rectangle.

Any 3 end points of the RotatedRect. They must be given in order (either clockwise or anticlockwise).

Trait Implementations§

Wrap the specified raw pointer Read more
Return an the underlying raw pointer while consuming this wrapper. Read more
Return the underlying raw pointer. Read more
Return the underlying mutable raw pointer Read more
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
returns the rectangle mass center
returns width and height of the rectangle
returns the rotation angle. When the angle is 0, 90, 180, 270 etc., the rectangle becomes an up-right rectangle.
returns the rectangle mass center
returns width and height of the rectangle
returns the rotation angle. When the angle is 0, 90, 180, 270 etc., the rectangle becomes an up-right rectangle.
returns 4 vertices of the rectangle Read more
returns the minimal up-right integer rectangle containing the rotated rectangle
returns the minimal (exact) floating point rectangle containing the rotated rectangle, not intended for use with images

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.