Package boofcv.abst.segmentation
Interface ImageSuperpixels<T extends ImageBase<T>>
- All Known Implementing Classes:
Fh04_to_ImageSuperpixels
,MeanShift_to_ImageSuperpixels
,Slic_to_ImageSuperpixels
,Watershed_to_ImageSuperpixels
public interface ImageSuperpixels<T extends ImageBase<T>>
High level interface for computing superpixels. Superpixels are sets of connected adjacent pixels which belong.
They are intended to break the image up intelligently along object boundaries allowing for easier processing.
Each pixel in the output segmented image is assigned an integer label to identify which region in the image it
belongs to. A region is a continuous connected set of pixels.
-
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 foundvoid
Segments the input image into superpixels and puts the output in labeled image.
-
Method Details
-
segment
Segments the input image into superpixels and puts the output in labeled image.- Parameters:
input
- (Input) image.output
- (Output) Labeled image
-
getTotalSuperpixels
int getTotalSuperpixels()Returns the total number of image segments/superpixels found- Returns:
- Number of superpixels
-
getRule
ConnectRule getRule()Connectivity rule used to determine if a pixel is connected- Returns:
- Connectivity rule
-
getImageType
Type of input image it can process- Returns:
- Input image type
-