public class BinaryThinning
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
BinaryThinning.Mask
Abstract class for applying the mask.
|
class |
BinaryThinning.Mask0 |
class |
BinaryThinning.Mask1 |
class |
BinaryThinning.Mask2 |
class |
BinaryThinning.Mask3 |
class |
BinaryThinning.Mask4 |
class |
BinaryThinning.Mask5 |
class |
BinaryThinning.Mask6 |
class |
BinaryThinning.Mask7 |
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
mask0 |
static byte[] |
mask1 |
static byte[] |
mask2 |
static byte[] |
mask3 |
static byte[] |
mask4 |
static byte[] |
mask5 |
static byte[] |
mask6 |
static byte[] |
mask7 |
| Constructor and Description |
|---|
BinaryThinning() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ImageUInt8 binary,
int maxLoops)
Applies the thinning algorithm.
|
protected void |
findOnePixels(org.ddogleg.struct.GrowQueue_I32 ones)
Scans through the image and record the array index of all marked pixels
|
public static byte[] mask0
public static byte[] mask1
public static byte[] mask2
public static byte[] mask3
public static byte[] mask4
public static byte[] mask5
public static byte[] mask6
public static byte[] mask7
public void apply(ImageUInt8 binary, int maxLoops)
binary - Input binary image which is to be thinned. This is modifiedmaxLoops - Maximum number of thinning loops. Set to -1 to run until the image is no longer modified.protected void findOnePixels(org.ddogleg.struct.GrowQueue_I32 ones)