Class AztecMessageErrorCorrection

java.lang.Object
boofcv.alg.fiducial.aztec.AztecMessageErrorCorrection
Direct Known Subclasses:
AztecDecoder, AztecEncoder

public abstract class AztecMessageErrorCorrection extends Object
Contains functions for computing error correction code words and applying error correction to a message
  • Field Details

  • Constructor Details

    • AztecMessageErrorCorrection

      public AztecMessageErrorCorrection()
  • Method Details

    • computeEccWords

      public void computeEccWords(int wordBits, int maxMarkerWords)
      Computes ECC words from storageDataWords and stores them in storageEccWords.
      Parameters:
      wordBits - Number of bits in a word
      maxMarkerWords - Maximum number of words that can be stored in the marker
    • applyErrorCorrection

      public boolean 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.
      Parameters:
      marker - (Input) Marker with raw data (Output) Marker with corrected data
      Returns:
      true if successful