Package boofcv.alg.fiducial.aztec
Class AztecMessageErrorCorrection
java.lang.Object
boofcv.alg.fiducial.aztec.AztecMessageErrorCorrection
- Direct Known Subclasses:
AztecDecoder
,AztecEncoder
Contains functions for computing error correction code words and applying error correction to a message
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ReedSolomonCodes_U16
protected final ReedSolomonCodes_U16
protected final ReedSolomonCodes_U16
protected final ReedSolomonCodes_U16
protected final DogArray_I16
protected final DogArray_I16
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
applyErrorCorrection
(AztecCode marker) Applies error correction to the raw data inside the marker and adds the results to the marker while updating metadata such as number of bit errors detected.void
computeEccWords
(int wordBits, int maxMarkerWords) Computes ECC words fromstorageDataWords
and stores them instorageEccWords
.
-
Field Details
-
ecc6
-
ecc8
-
ecc10
-
ecc12
-
storageDataWords
-
storageEccWords
-
-
Constructor Details
-
AztecMessageErrorCorrection
public AztecMessageErrorCorrection()
-
-
Method Details
-
computeEccWords
public void computeEccWords(int wordBits, int maxMarkerWords) Computes ECC words fromstorageDataWords
and stores them instorageEccWords
.- Parameters:
wordBits
- Number of bits in a wordmaxMarkerWords
- Maximum number of words that can be stored in the marker
-
applyErrorCorrection
Applies error correction to the raw data inside the marker and adds the results to the marker while updating metadata such as number of bit errors detected.- Parameters:
marker
- (Input) Marker with raw data (Output) Marker with corrected data- Returns:
- true if successful
-