I
- Type of Image
@Reference(type=Article, author={"Felzenszwalb, Pedro F.","Huttenlocher, Daniel P."}, title="Efficient Graph-Based Image Segmentation", journal="Int. J. Comput. Vision", volume="59", number="2", month="September", year="2004", pages={"167","181"}, url="http://dx.doi.org/10.1023/B:VISI.0000022288.19776.77", publisher="Kluwer Academic Publishers") public class FelzenszwalbHuttenlocherSegmenter<I extends Image<?,I> & SinglebandImageProcessor.Processable<Float,FImage,I>> extends Object implements Segmenter<I>
Modifier and Type | Field and Description |
---|---|
protected float |
k |
protected int |
minSize |
protected float |
sigma |
Constructor and Description |
---|
FelzenszwalbHuttenlocherSegmenter()
Default constructor
|
FelzenszwalbHuttenlocherSegmenter(float sigma,
float k,
int minSize)
Construct with the given parameters
|
Modifier and Type | Method and Description |
---|---|
List<ConnectedComponent> |
segment(I image)
Segment an image into
ConnectedComponent s. |
protected DisjointSetForest<Pixel> |
segmentGraph(int numVertices,
List<SimpleWeightedEdge<Pixel>> edges) |
protected List<ConnectedComponent> |
segmentImage(MBFImage im) |
public FelzenszwalbHuttenlocherSegmenter()
public FelzenszwalbHuttenlocherSegmenter(float sigma, float k, int minSize)
sigma
- amount of blurringk
- thresholdminSize
- minimum allowed component sizepublic List<ConnectedComponent> segment(I image)
Segmenter
ConnectedComponent
s.segment
in interface Segmenter<I extends Image<?,I> & SinglebandImageProcessor.Processable<Float,FImage,I>>
image
- the to segmentConnectedComponent
s.protected List<ConnectedComponent> segmentImage(MBFImage im)
protected DisjointSetForest<Pixel> segmentGraph(int numVertices, List<SimpleWeightedEdge<Pixel>> edges)