Skip to main content

Module quad

Module quad 

Source
Expand description

Quad extraction and geometric primitives. Quad extraction and geometric primitive fitting.

This module implements the middle stage of the detection pipeline:

  1. Contour Tracing: Extracting the boundary of connected components.
  2. Simplification: Using Douglas-Peucker to reduce complex contours to polygons.
  3. Quad Fitting: Heuristics to reduce polygons to quadrilaterals and verify convexity.
  4. 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.