public class ThresholdSegmenter extends Object implements Segmenter<FImage>
Segmenter
s by
applying the thresholding operation and then gathering the pixel sets
belonging to each segment. Note that class does not perform connected
component analysis, and for example in the case of binary thresholding, there
will only be two PixelSet
s produced (i.e. foreground and background).Constructor and Description |
---|
ThresholdSegmenter(Processor<FImage> thresholder)
Construct with the given thresholding algorithm implementation.
|
Modifier and Type | Method and Description |
---|---|
List<? extends PixelSet> |
segment(FImage image)
Segment an image into
ConnectedComponent s. |
public ThresholdSegmenter(Processor<FImage> thresholder)
thresholder
- the thresholding algorithmpublic List<? extends PixelSet> segment(FImage image)
Segmenter
ConnectedComponent
s.segment
in interface Segmenter<FImage>
image
- the to segmentConnectedComponent
s.