Package boofcv.alg.fiducial.aztec
Class AztecMessageModeCodec
java.lang.Object
boofcv.alg.fiducial.aztec.AztecMessageModeCodec
Encodes and decodes binary data for mode message
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
decodeMode
(PackedBits8 bits, AztecCode marker) Applies error correction to bits then decodes the values.void
encodeMode
(AztecCode marker, PackedBits8 bits) Encodes the binary data for the mode message for the provided marker.
-
Constructor Details
-
AztecMessageModeCodec
public AztecMessageModeCodec()
-
-
Method Details
-
encodeMode
Encodes the binary data for the mode message for the provided marker. ECC is computed using Reed-Solomon encoding with 4-bit Galois Fields.- Parameters:
marker
- (Input) Marker which is to be encodedbits
- (Output) Encoded binary data
-
decodeMode
Applies error correction to bits then decodes the values. Save results into marker. Returns true if successful
-