Expand description
Quad extraction and geometric primitives. Quad extraction and geometric primitive fitting.
This module implements the middle stage of the detection pipeline:
- Contour Tracing: Extracting the boundary of connected components.
- Simplification: Using Douglas-Peucker to reduce complex contours to polygons.
- Quad Fitting: Heuristics to reduce polygons to quadrilaterals and verify convexity.
- Sub-pixel Refinement: Intensity-based edge localization for maximum precision.
Re-exports§
pub use crate::Point;
Functions§
- extract_
quads_ soa - Quad extraction with Structure of Arrays (SoA) output.
- extract_
quads_ with_ config - Quad extraction with custom configuration.