public class Slic_to_ImageSuperpixels<T extends boofcv.struct.image.ImageBase> extends java.lang.Object implements ImageSuperpixels<T>
SegmentSlic for ImageSuperpixels.| Constructor and Description |
|---|
Slic_to_ImageSuperpixels(SegmentSlic<T> slic) |
| 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.
|
public Slic_to_ImageSuperpixels(SegmentSlic<T> slic)
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>