public class Slic_to_ImageSuperpixels<T extends boofcv.struct.image.ImageBase<T>> extends java.lang.Object implements ImageSuperpixels<T>, org.ddogleg.struct.Stoppable
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
|
boolean |
isStopRequested() |
void |
requestStop() |
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<T>>input - (Input) image.output - (Output) Labeled imagepublic int getTotalSuperpixels()
ImageSuperpixelsgetTotalSuperpixels in interface ImageSuperpixels<T extends boofcv.struct.image.ImageBase<T>>public boofcv.struct.ConnectRule getRule()
ImageSuperpixelsgetRule in interface ImageSuperpixels<T extends boofcv.struct.image.ImageBase<T>>public boofcv.struct.image.ImageType<T> getImageType()
ImageSuperpixelsgetImageType in interface ImageSuperpixels<T extends boofcv.struct.image.ImageBase<T>>public void requestStop()
requestStop in interface org.ddogleg.struct.Stoppablepublic boolean isStopRequested()
isStopRequested in interface org.ddogleg.struct.Stoppable