Skip to main content

Module orientation

Module orientation 

Source
Expand description

Two-axis projective orientation fit at a chessboard corner.

The detector lifts each subpixel corner to an AxisFitResult that carries the two local grid-axis directions, their per-axis 1σ angular uncertainties, and a residual RMS. The actual fit is pluggable via OrientationMethod.

Two public entry points are provided:

  • fit_axes_at_point (image input) — samples the ring at (cx, cy) and dispatches to the chosen method.
  • fit_axes_from_samples (presampled input) — accepts the 16 ring samples directly; convenient for unit tests and for the orientation benchmark when ring sampling is decoupled.

New algorithm variants plug into the OrientationMethod enum without breaking SemVer thanks to the #[non_exhaustive] attribute.

Re-exports§

pub use descriptor::describe_corners;

Modules§

descriptor
Lift detector candidates into CornerDescriptors by sampling the source image and dispatching to an OrientationMethod.

Structs§

AxisFitResult
Result of a two-axis orientation fit at a single corner.

Enums§

OrientationMethod
Method used to fit the two grid axes at a detected corner.

Functions§

fit_axes_at_point
Sample the 16-point ChESS ring at (cx, cy) with radius and run the chosen orientation method.
fit_axes_from_samples
Run the chosen orientation method on pre-sampled ring values.