CellDetectorByBlocks

Inheritance: java.lang.Object

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

public class CellDetectorByBlocks implements IAlgorithm

This class detects cells of a datamatrix with big dimension (>=32), using all the time patterns of matrix blocks

Constructors

Constructor Description
CellDetectorByBlocks()

Methods

Method Description
correctImbalanceDistance(int minThreshold, int maxThreshold, int shift, Int32List[] itemList) Search items with imbalance distance.
detectSmallWithBlur(ByteBitmap byteBitmap, RectangleVertexes vertexes, int dimensionX, int dimensionY, int separatrix, boolean simpleMethod) Detects small matrix with blur, all the time patterns of matrix blocks.
equals(Object arg0)
execute(ModelHolder modelHolder) Executes the algorithm of CellDetectorByBlocks
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

CellDetectorByBlocks()

public CellDetectorByBlocks()

correctImbalanceDistance(int minThreshold, int maxThreshold, int shift, Int32List[] itemList)

public static void correctImbalanceDistance(int minThreshold, int maxThreshold, int shift, Int32List[] itemList)

Search items with imbalance distance. This distance is corrected.

Parameters:

Parameter Type Description
minThreshold int an available minimum distance
maxThreshold int an available maximum distance
shift int correction value
itemList Int32List[] list of items

detectSmallWithBlur(ByteBitmap byteBitmap, RectangleVertexes vertexes, int dimensionX, int dimensionY, int separatrix, boolean simpleMethod)

public static SpikedBits detectSmallWithBlur(ByteBitmap byteBitmap, RectangleVertexes vertexes, int dimensionX, int dimensionY, int separatrix, boolean simpleMethod)

Detects small matrix with blur, all the time patterns of matrix blocks. Only for square matrixes and dimension >=32

Parameters:

Parameter Type Description
byteBitmap ByteBitmap A bytebitmap
vertexes RectangleVertexes Vertexes of a matrix
dimensionX int Dimension x
dimensionY int Dimension y
separatrix int Separatrix
simpleMethod boolean True - detect color by 1 point for each cell. False - by 4 points

Returns: SpikedBits - Spiked bits

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 the algorithm of CellDetectorByBlocks

Parameters:

Parameter Type Description
modelHolder ModelHolder model holder

Returns: boolean -

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

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