BlackPriorityCorrector
Contents
[
Hide
]
Inheritance: java.lang.Object
public class BlackPriorityCorrector
Correction algorithms. Apply this corrector for columns/rows in a binarization bitmap with a black losing
Constructors
Constructor | Description |
---|---|
BlackPriorityCorrector() |
Methods
Method | Description |
---|---|
correctColumns(ByteBitmap byteBitmap, Int32List rows, Int32List[] cols) | Corrects columns. |
correctRows(ByteBitmap byteBitmap, Int32List[] rows, Int32List cols) | Corrects rows. |
differenceCount(ByteBitmap byteBitmap, Int32List arrayX, int y1, int y2, boolean flip) | Calculates the difference between y1 and y2 on arrayX |
equals(Object arg0) | |
getClass() | |
hashCode() | |
notify() | |
notifyAll() | |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
BlackPriorityCorrector()
public BlackPriorityCorrector()
correctColumns(ByteBitmap byteBitmap, Int32List rows, Int32List[] cols)
public static void correctColumns(ByteBitmap byteBitmap, Int32List rows, Int32List[] cols)
Corrects columns. Selects more black column. Rechecks by a hamming
Parameters:
Parameter | Type | Description |
---|---|---|
byteBitmap | ByteBitmap | byte bitmap |
rows | Int32List | rows |
cols | Int32List[] | cols |
correctRows(ByteBitmap byteBitmap, Int32List[] rows, Int32List cols)
public static void correctRows(ByteBitmap byteBitmap, Int32List[] rows, Int32List cols)
Corrects rows. Selects more black row. Rechecks by a hamming
Parameters:
Parameter | Type | Description |
---|---|---|
byteBitmap | ByteBitmap | byte bitmap |
rows | Int32List[] | rows |
cols | Int32List | cols |
differenceCount(ByteBitmap byteBitmap, Int32List arrayX, int y1, int y2, boolean flip)
public static int differenceCount(ByteBitmap byteBitmap, Int32List arrayX, int y1, int y2, boolean flip)
Calculates the difference between y1 and y2 on arrayX
Parameters:
Parameter | Type | Description |
---|---|---|
byteBitmap | ByteBitmap | byte bitmap |
arrayX | Int32List | array of x |
y1 | int | first y |
y2 | int | second y |
flip | boolean | “flip x to y” flag |
Returns: int -
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
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 |