Package boofcv.alg.fiducial.aztec
Class AztecEncoder
java.lang.Object
boofcv.alg.fiducial.aztec.AztecMessageErrorCorrection
boofcv.alg.fiducial.aztec.AztecEncoder
Encodes the data message into binary data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContains the data for a sequence of characters that are all encoded in the same mode -
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleAmount of error correction is determined by this number.Fields inherited from class boofcv.alg.fiducial.aztec.AztecMessageErrorCorrection
ecc10, ecc12, ecc6, ecc8, storageDataWords, storageEccWords -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAutomatic(String message) Automatically select which encoding mode it should encode this message.addBytes(byte[] data, int offset, int length) addPunctuation(String message) fixate()Encodes into binary data all the segments, computes ECC, and constructs the final marker.voidreset()setEcc(double fraction) setLayers(int numLayers) setStructure(AztecCode.Structure structure) Methods inherited from class boofcv.alg.fiducial.aztec.AztecMessageErrorCorrection
applyErrorCorrection, computeEccWords
-
Field Details
-
errorCorrectionLength
public double errorCorrectionLengthAmount of error correction is determined by this number. ecc_words = errorCorrectionLength*code_words - 3. Larger values will require more data and larger markers, but do offer more fault tolerance. See G.2 in ISO document.
-
-
Constructor Details
-
AztecEncoder
public AztecEncoder()
-
-
Method Details
-
reset
public void reset() -
setEcc
-
setStructure
-
setLayers
-
addUpper
-
addLower
-
addMixed
-
addPunctuation
-
addDigit
-
addBytes
-
addAutomatic
Automatically select which encoding mode it should encode this message. This will select the most efficient encoding possible. -
fixate
Encodes into binary data all the segments, computes ECC, and constructs the final marker. Anything which is not explicitly specified will have a reasonable value auto selected.- Returns:
- Returns a new marker.
-