Expand description
Tag decoding traits and implementations. Tag decoding, homography computation, and bit sampling.
This module handles the final stage of the pipeline:
- Homography: Computing the projection from canonical tag space to image pixels.
- Bit Sampling: Bilinear interpolation of intensities at grid points.
- Error Correction: Correcting bit flips using tag-family specific Hamming distances.
Structs§
- April
Tag16h5 - Decoder for the AprilTag 16h5 family.
- April
Tag36h11 - Decoder for the AprilTag 36h11 family.
- ArUco4x4_
50 - Decoder for the ArUco 4x4_50 family.
- ArUco4x4_
100 - Decoder for the ArUco 4x4_100 family.
- Generic
Decoder - Generic decoder for any TagDictionary (static or custom).
- Homography
- A 3x3 Homography matrix.
Traits§
- TagDecoder
- A trait for decoding binary payloads from extracted tags.
Functions§
- compute_
otsu_ threshold - Returns the threshold that maximizes inter-class variance.
- family_
to_ decoder - Convert a TagFamily enum to a boxed decoder instance.
- refine_
corners_ erf - Refine corners using “Erf-Fit” (Gaussian fit to intensity profile).
- refine_
corners_ gridfit - Refine corner positions using GridFit optimization.
- refine_
corners_ with_ homography - Refine corner positions using edge-based optimization with the homography.
- sample_
grid - Sample the bit grid from the image (Legacy/Hard wrapper).
- sample_
grid_ generic - Sample the bit grid from the image using the homography and decoder points.