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
FieldsModifier and TypeFieldDescriptionprotected final ReedSolomonCodes_U16protected final ReedSolomonCodes_U16protected final ReedSolomonCodes_U16protected final ReedSolomonCodes_U16protected final DogArray_I16protected final DogArray_I16 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyErrorCorrection(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.voidcomputeEccWords(int wordBits, int maxMarkerWords) Computes ECC words fromstorageDataWordsand 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 fromstorageDataWordsand 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
-