public class MeanShift_to_ImageSuperpixels<T extends boofcv.struct.image.ImageBase<T>> extends java.lang.Object implements ImageSuperpixels<T>, org.ddogleg.struct.Stoppable
| Constructor and Description |
|---|
MeanShift_to_ImageSuperpixels(SegmentMeanShift<T> ms,
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
|
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 MeanShift_to_ImageSuperpixels(SegmentMeanShift<T> ms, boofcv.struct.ConnectRule rule)
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