public class MeanShift_to_ImageSuperpixels<T extends boofcv.struct.image.ImageBase> extends java.lang.Object implements ImageSuperpixels<T>
| 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
|
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>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>