imageproc::geometry

Function min_area_rect

Source
pub fn min_area_rect<T>(points: &[Point<T>]) -> [Point<T>; 4]
where T: NumCast + Copy + Ord,
Expand description

Finds the rectangle of least area that includes all input points. This rectangle need not be axis-aligned.

The returned points are the [top left, top right, bottom right, bottom left] points of this rectangle.