public class Watershed_to_ImageSuperpixels<T extends boofcv.struct.image.ImageBase> extends java.lang.Object implements ImageSuperpixels<T>
WatershedVincentSoille1991 for ImageSuperpixels. Watershed regions
and small regions are merged together. When merging regions a preference is given to regions which are the
most similar in color intensity.| Constructor and Description |
|---|
Watershed_to_ImageSuperpixels(WatershedVincentSoille1991 alg,
int minimumSize,
boofcv.struct.ConnectRule rule) |
| Modifier and Type | Method and Description |
|---|---|
boofcv.struct.image.ImageType<T> |
getImageType()
Type of input image it can process
|
boofcv.struct.ConnectRule |
getRule()
Connectivity rule used to determine if a pixel is connected
|
int |
getTotalSuperpixels()
Returns the total number of image segments/superpixels found
|
void |
segment(T input,
boofcv.struct.image.GrayS32 output)
Segments the input image into superpixels and puts the output in labeled image.
|
void |
setImageType(boofcv.struct.image.ImageType<T> imageType) |
public Watershed_to_ImageSuperpixels(WatershedVincentSoille1991 alg, int minimumSize, boofcv.struct.ConnectRule rule)
public void segment(T input, boofcv.struct.image.GrayS32 output)
ImageSuperpixelssegment in interface ImageSuperpixels<T extends boofcv.struct.image.ImageBase>input - (Input) image.output - (Output) Labeled imagepublic int getTotalSuperpixels()
ImageSuperpixelsgetTotalSuperpixels in interface ImageSuperpixels<T extends boofcv.struct.image.ImageBase>public boofcv.struct.ConnectRule getRule()
ImageSuperpixelsgetRule in interface ImageSuperpixels<T extends boofcv.struct.image.ImageBase>public boofcv.struct.image.ImageType<T> getImageType()
ImageSuperpixelsgetImageType in interface ImageSuperpixels<T extends boofcv.struct.image.ImageBase>public void setImageType(boofcv.struct.image.ImageType<T> imageType)