Class ErrorCorrection
- java.lang.Object
-
- com.google.zxing.pdf417.decoder.ec.ErrorCorrection
-
public final class ErrorCorrection extends java.lang.ObjectPDF417 error correction implementation.
This example is quite useful in understanding the algorithm.
- See Also:
ReedSolomonDecoder
-
-
Constructor Summary
Constructors Constructor Description ErrorCorrection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdecode(int[] received, int numECCodewords, int[] erasures)
-
-
-
Method Detail
-
decode
public int decode(int[] received, int numECCodewords, int[] erasures) throws ChecksumException- Parameters:
received- received codewordsnumECCodewords- number of those codewords used for ECerasures- location of erasures- Returns:
- number of errors
- Throws:
ChecksumException- if errors cannot be corrected, maybe because of too many errors
-
-