public class HitAndMiss extends Object implements ConnectedComponentProcessor, KernelProcessor<Float,FImage>
| Modifier and Type | Field and Description |
|---|---|
static HitAndMiss |
CONVEX_CORNERS
Hit and miss operator for detecting convex corners
|
protected int |
cx |
protected int |
cy |
protected StructuringElement[] |
elements |
protected Set<Pixel> |
outputPixels |
protected int |
sh |
protected int |
sw |
| Constructor and Description |
|---|
HitAndMiss(StructuringElement... ses)
Construct a hit and miss operator with the given
structuring elements.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getKernelHeight() |
int |
getKernelWidth() |
Set<Pixel> |
getPixels()
Get the pixels selected by the hit and miss operator
|
void |
process(ConnectedComponent cc) |
Float |
processKernel(FImage patch) |
public static final HitAndMiss CONVEX_CORNERS
protected Set<Pixel> outputPixels
protected StructuringElement[] elements
protected int cx
protected int cy
protected int sw
protected int sh
public HitAndMiss(StructuringElement... ses)
ses - the structuring elementspublic void process(ConnectedComponent cc)
process in interface ConnectedComponentProcessorpublic Set<Pixel> getPixels()
public 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>