C# Class ZXing.Datamatrix.Internal.Decoder

The main class which implements Data Matrix Code decoding -- as opposed to locating and extracting the Data Matrix Code from an image.

[email protected] (Brian Brown)
Datei anzeigen Open project: Redth/ZXing.Net.Mobile

Public Methods

Method Description
Decoder ( ) : ZXing.Common

Initializes a new instance of the Decoder class.

decode ( BitMatrix bits ) : ZXing.Common.DecoderResult

Decodes a Data Matrix Code represented as a BitMatrix. A 1 or "true" is taken to mean a black module.

decode ( bool image ) : ZXing.Common.DecoderResult

Convenience method that can decode a Data Matrix Code represented as a 2D array of booleans. "true" is taken to mean a black module.

booleans representing white/black Data Matrix Code modules text and bytes encoded within the Data Matrix Code if the Data Matrix Code cannot be decoded if error correction fails

Private Methods

Method Description
correctErrors ( byte codewordBytes, int numDataCodewords ) : bool

Given data and error-correction codewords received, possibly corrupted by errors, attempts to correct the errors in-place using Reed-Solomon error correction.

data and error correction codewords number of codewords that are data bytes

Method Details

Decoder() public method

Initializes a new instance of the Decoder class.
public Decoder ( ) : ZXing.Common
return ZXing.Common

decode() public method

Decodes a Data Matrix Code represented as a BitMatrix. A 1 or "true" is taken to mean a black module.

public decode ( BitMatrix bits ) : ZXing.Common.DecoderResult
bits ZXing.Common.BitMatrix booleans representing white/black Data Matrix Code modules
return ZXing.Common.DecoderResult

decode() public method

Convenience method that can decode a Data Matrix Code represented as a 2D array of booleans. "true" is taken to mean a black module.

booleans representing white/black Data Matrix Code modules text and bytes encoded within the Data Matrix Code if the Data Matrix Code cannot be decoded if error correction fails
public decode ( bool image ) : ZXing.Common.DecoderResult
image bool
return ZXing.Common.DecoderResult