[−][src]Function opencv::imgproc::min_area_rect
pub fn min_area_rect(points: &dyn ToInputArray) -> Result<RotatedRect>
Finds a rotated rectangle of the minimum area enclosing the input 2D point set.
The function calculates and returns the minimum-area bounding rectangle (possibly rotated) for a specified point set. Developer should keep in mind that the returned RotatedRect can contain negative indices when data is close to the containing Mat element boundary.
Parameters
- points: Input vector of 2D points, stored in std::vector<> or Mat