Package boofcv.abst.segmentation
Class MeanShift_to_ImageSuperpixels<T extends ImageBase<T>>
java.lang.Object
boofcv.abst.segmentation.MeanShift_to_ImageSuperpixels<T>
- All Implemented Interfaces:
ImageSuperpixels<T>
,Stoppable
public class MeanShift_to_ImageSuperpixels<T extends ImageBase<T>>
extends Object
implements ImageSuperpixels<T>, Stoppable
Wrapper around
SegmentMeanShift
for ImageSuperpixels
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ddogleg.struct.Stoppable
Stoppable.Stopped
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionType of input image it can processgetRule()
Connectivity rule used to determine if a pixel is connectedint
Returns the total number of image segments/superpixels foundboolean
void
void
Segments the input image into superpixels and puts the output in labeled image.
-
Constructor Details
-
MeanShift_to_ImageSuperpixels
-
-
Method Details
-
segment
Description copied from interface:ImageSuperpixels
Segments the input image into superpixels and puts the output in labeled image.- Specified by:
segment
in interfaceImageSuperpixels<T extends ImageBase<T>>
- Parameters:
input
- (Input) image.output
- (Output) Labeled image
-
getTotalSuperpixels
public int getTotalSuperpixels()Description copied from interface:ImageSuperpixels
Returns the total number of image segments/superpixels found- Specified by:
getTotalSuperpixels
in interfaceImageSuperpixels<T extends ImageBase<T>>
- Returns:
- Number of superpixels
-
getRule
Description copied from interface:ImageSuperpixels
Connectivity rule used to determine if a pixel is connected- Specified by:
getRule
in interfaceImageSuperpixels<T extends ImageBase<T>>
- Returns:
- Connectivity rule
-
getImageType
Description copied from interface:ImageSuperpixels
Type of input image it can process- Specified by:
getImageType
in interfaceImageSuperpixels<T extends ImageBase<T>>
- Returns:
- Input image type
-
requestStop
public void requestStop()- Specified by:
requestStop
in interfaceStoppable
-
isStopRequested
public boolean isStopRequested()- Specified by:
isStopRequested
in interfaceStoppable
-