Skip to main content

Module rectangle_fitting

Module rectangle_fitting 

Source
Expand description

Rectangle fitting via L-shape search.

Fits a minimum bounding rectangle to a set of 2D points by searching over orientations and selecting the one that best matches according to a chosen criterion (area, closeness, or variance).

Reference: PythonRobotics rectangle_fitting by Atsushi Sakai. Based on “Efficient L-Shape Fitting for Vehicle Detection Using Laser Scanners” (CMU Robotics Institute).

Structs§

LShapeFitting
Configuration and entry point for the L-shape rectangle fitting algorithm.
RectangleData
Four-line representation of a fitted rectangle.

Enums§

Criteria
Criterion used to score rectangle orientations.