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
Modifier and TypeClassDescriptionstatic class
Contains the data for a sequence of characters that are all encoded in the same mode -
Field Summary
Modifier and TypeFieldDescriptiondouble
Amount 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
-
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.void
reset()
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.
-