public class SequentialThin extends Object implements ConnectedComponentProcessor, ImageProcessor<FImage>
Modifier and Type | Field and Description |
---|---|
protected HitAndMiss |
hitAndMiss |
protected int |
niter |
Constructor and Description |
---|
SequentialThin(int niter,
StructuringElement... se)
Construct the sequential thin operator with the given structuring elements
and number of iterations
|
SequentialThin(StructuringElement... se)
Construct the sequential thin operator with the given structuring elements
|
Modifier and Type | Method and Description |
---|---|
void |
process(ConnectedComponent cc)
Perform an operation on the given
ConnectedComponent . |
void |
processImage(FImage image)
Process an image.
|
protected HitAndMiss hitAndMiss
protected int niter
public SequentialThin(StructuringElement... se)
se
- the structuring elementspublic SequentialThin(int niter, StructuringElement... se)
niter
- number of iterations to applyse
- the structuring elementspublic void process(ConnectedComponent cc)
ConnectedComponentProcessor
ConnectedComponent
.process
in interface ConnectedComponentProcessor
cc
- The ConnectedComponent
to process.public void processImage(FImage image)
ImageProcessor
Image.internalAssign(Image)
.processImage
in interface ImageProcessor<FImage>
image
- The image to process in place.