Expand description
Image-free recovery of regular projective grids from 2D point evidence.
The ordinary workflow has one entry point and production defaults:
use nalgebra::Point2;
use projective_grid::{
detect_grid, DetectionRequest, Evidence, LatticeKind, LocalAxis,
OrientedFeature, PointFeature,
};
let features = vec![
OrientedFeature::new(
PointFeature::new(0, Point2::new(0.0, 0.0)),
[LocalAxis::new(0.0, None), LocalAxis::new(1.57, None)],
),
OrientedFeature::new(
PointFeature::new(1, Point2::new(10.0, 0.0)),
[LocalAxis::new(0.0, None), LocalAxis::new(1.57, None)],
),
OrientedFeature::new(
PointFeature::new(2, Point2::new(10.0, 10.0)),
[LocalAxis::new(0.0, None), LocalAxis::new(1.57, None)],
),
OrientedFeature::new(
PointFeature::new(3, Point2::new(0.0, 10.0)),
[LocalAxis::new(0.0, None), LocalAxis::new(1.57, None)],
),
];
let request = DetectionRequest::new(
LatticeKind::Square,
Evidence::Oriented2(&features),
);
let detection = detect_grid(request)?;Pattern-specific detector builders use the curated expert namespace.
Exact intermediate evidence is available through the opt-in diagnostics
feature.
Modules§
- diagnostics
- Opt-in evidence explaining how detections were produced.
- expert
- Expert composition surface for detector builders.
Structs§
- Consistency
Params - Parameters for coordinate-hypothesis consistency checks.
- Consistency
Report - Report returned by coordinate-hypothesis consistency checks.
- Consistency
Request - Coordinate-hypothesis consistency request.
- Coord
- Integer coordinate on a lattice.
- Coordinate
Hypothesis - Caller-supplied hypothesis that a feature lies at a lattice coordinate.
- Detection
Params - Detection parameters for ordinary callers.
- Detection
Request - Detection request.
- Grid
Detection - Successful grid detection.
- Grid
Dimensions - Known maximum grid extent, counted in observable feature positions.
- Grid
Entry - One labelled grid feature in a solved grid.
- Labelled
Grid - A labelled grid component.
- Lattice
Fit - Fitted lattice-to-image transform plus residual summary.
- Local
Axis - One undirected local lattice-axis observation.
- Oriented
Feature - A point feature augmented with one or more local lattice directions.
- Point
Feature - One detected image-space feature.
- Residual
Summary - Residual summary in image pixels.
Enums§
- Evidence
- Evidence supplied to a detection task.
- Evidence
Kind - Evidence kind supplied to a grid task.
- Grid
Error - User-facing failure modes for projective-grid tasks.
- Grid
Task - Grid task that reported an error.
- Lattice
Kind - Supported lattice families.
Functions§
- check_
consistency - Check whether caller-supplied coordinate hypotheses are geometrically consistent under the requested lattice family.
- detect_
grid - Detect a grid from feature evidence.
- detect_
grid_ all - Multi-component variant of
detect_grid.