public class Dilate extends Object implements ConnectedComponentProcessor, KernelProcessor<Float,FImage>
MaxFilter for greyscale dilation.| Modifier and Type | Field and Description |
|---|---|
protected int |
cx |
protected int |
cy |
protected StructuringElement |
element |
protected int |
sh |
protected int |
sw |
| Constructor and Description |
|---|
Dilate()
Construct the dilate operator with a BOX structuring element
|
Dilate(StructuringElement se)
Construct the dilate operator with the given structuring element
|
| Modifier and Type | Method and Description |
|---|---|
static void |
dilate(FImage img,
int times)
Apply dilation 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 Dilate(StructuringElement se)
se - the structuring elementpublic Dilate()
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 dilate(FImage img, int times)
StructuringElement.BOX elementimg - the imagetimes - the number of times to apply the dilation