protected abstract class BinaryThinning.Mask
extends java.lang.Object
| Constructor and Description |
|---|
Mask(byte[] mask) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.ddogleg.struct.GrowQueue_I32 onesIn,
org.ddogleg.struct.GrowQueue_I32 onesOut,
org.ddogleg.struct.GrowQueue_I32 zerosOut) |
protected boolean |
borderMask(int cx,
int cy)
Slower code which uses a generic mask to handle image border
|
protected abstract boolean |
innerMask(int indexIn)
Specialized code optimized for the inner image
|
public void apply(org.ddogleg.struct.GrowQueue_I32 onesIn,
org.ddogleg.struct.GrowQueue_I32 onesOut,
org.ddogleg.struct.GrowQueue_I32 zerosOut)
onesIn - (input) Indexes of pixels with a value of 1onesOut - (output) Indexes of pixels with a value of 1 after the mask is appliedzerosOut - (output) Indexes of pixels whose values have changed form 1 to 0protected boolean borderMask(int cx,
int cy)
cx - x-coordinate of center pixels, always 1cy - y-coordinate of center pixels, always 1protected abstract boolean innerMask(int indexIn)
indexIn - Index of center pixels, always 1