CellsDetectorHamming

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.barcode.barcoderecognition.recognition.datamatrix.oldalgorithm.treealgorithm.IAlgorithm

public class CellsDetectorHamming implements IAlgorithm

This class detects cells of a datamatrix, using hamming differences between rows and columns

Constructors

Constructor Description
CellsDetectorHamming()

Methods

Method Description
alignedSpikes(ByteBitmap byteBitmap, int fromCoordinate, int toCoordinate, int start, int length, int halfModule, int module, boolean isHorisontal, int expectedCount, float blur) The positioning of cells in a line from start to end coordinate
equals(Object arg0)
execute(ModelHolder modelHolder) Executes cells detecting by hamming algorithm
getClass()
hammingAlignedBits(ByteBitmap byteBitmap, RectangleVertexes vertexes, int dimensionX, int dimensionY, int separatrix, float blur) Initialize bits for barcode with hamming posicioning algorthm (from 2px module)
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

CellsDetectorHamming()

public CellsDetectorHamming()

alignedSpikes(ByteBitmap byteBitmap, int fromCoordinate, int toCoordinate, int start, int length, int halfModule, int module, boolean isHorisontal, int expectedCount, float blur)

public static Int32List alignedSpikes(ByteBitmap byteBitmap, int fromCoordinate, int toCoordinate, int start, int length, int halfModule, int module, boolean isHorisontal, int expectedCount, float blur)

The positioning of cells in a line from start to end coordinate

Parameters:

Parameter Type Description
byteBitmap ByteBitmap Input bytebitmap
fromCoordinate int Start coordinate
toCoordinate int End coordinate
start int Row or column number
length int
halfModule int half module
module int A module. Better to take module rounded to the lower side
isHorisontal boolean Is line horizontal
expectedCount int an expected count of spikes
blur float

Returns: Int32List - Centres of cells

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

execute(ModelHolder modelHolder)

public final boolean execute(ModelHolder modelHolder)

Executes cells detecting by hamming algorithm

Parameters:

Parameter Type Description
modelHolder ModelHolder Model holder

Returns: boolean - True if found cells, else false

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hammingAlignedBits(ByteBitmap byteBitmap, RectangleVertexes vertexes, int dimensionX, int dimensionY, int separatrix, float blur)

public static BitArrayArray hammingAlignedBits(ByteBitmap byteBitmap, RectangleVertexes vertexes, int dimensionX, int dimensionY, int separatrix, float blur)

Initialize bits for barcode with hamming posicioning algorthm (from 2px module)

Parameters:

Parameter Type Description
byteBitmap ByteBitmap Input bytebitmap
vertexes RectangleVertexes Vertexts of a barcode rectangle
dimensionX int Dimension X
dimensionY int Dimension Y
separatrix int Separatrix
blur float Blur

Returns: BitArrayArray - Bits

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int