public class Erode extends Object implements ConnectedComponentProcessor, KernelProcessor<Float,FImage>
MinFilter for greyscale erosion.| Modifier and Type | Field and Description |
|---|---|
protected int |
cx |
protected int |
cy |
protected StructuringElement |
element |
protected int |
sh |
protected int |
sw |
| Constructor and Description |
|---|
Erode()
Construct the erode operator with a BOX structuring element
|
Erode(StructuringElement se)
Construct the erode operator with the given structuring element
|
| Modifier and Type | Method and Description |
|---|---|
static void |
erode(FImage img,
int times)
Apply erosion some number of times to an image with the default
StructuringElement.BOX element |
int |
getKernelHeight() |
int |
getKernelWidth() |
void |
process(ConnectedComponent cc) |
Float |
processKernel(FImage patch) |
protected StructuringElement element
protected int cx
protected int cy
protected int sw
protected int sh
public Erode(StructuringElement se)
se - the structuring elementpublic Erode()
public void process(ConnectedComponent cc)
process in interface ConnectedComponentProcessorpublic int getKernelHeight()
getKernelHeight in interface KernelProcessor<Float,FImage>public int getKernelWidth()
getKernelWidth in interface KernelProcessor<Float,FImage>public Float processKernel(FImage patch)
processKernel in interface KernelProcessor<Float,FImage>public static void erode(FImage img, int times)
StructuringElement.BOX elementimg - the imagetimes - the number of times to apply the erosion