public class ThresholdSegmenter extends Object implements Segmenter<FImage>
Segmenters 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 PixelSets 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
ConnectedComponents. |
public ThresholdSegmenter(Processor<FImage> thresholder)
thresholder - the thresholding algorithmpublic List<? extends PixelSet> segment(FImage image)
SegmenterConnectedComponents.segment in interface Segmenter<FImage>image - the to segmentConnectedComponents.