boofcv.examples.segmentation
Class ExampleSegmentSuperpixels
- java.lang.Object
-
- boofcv.examples.segmentation.ExampleSegmentSuperpixels
-
public class ExampleSegmentSuperpixels extends java.lang.ObjectExample demonstrating high level image segmentation interface. An image segmented using this interface will have each pixel assigned a unique label from 0 to N-1, where N is the number of regions. All pixels which belong to the same region are connected. These regions are also known as superpixels.
-
-
Constructor Summary
Constructors Constructor and Description ExampleSegmentSuperpixels()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidmain(java.lang.String[] args)static <T extends ImageBase>
voidperformSegmentation(ImageSuperpixels<T> alg, T color)Segments and visualizes the imagestatic <T extends ImageBase>
voidvisualize(GrayS32 pixelToRegion, T color, int numSegments)Visualizes results three ways.
-
-
-
Method Detail
-
performSegmentation
public static <T extends ImageBase> void performSegmentation(ImageSuperpixels<T> alg, T color)
Segments and visualizes the image
-
visualize
public static <T extends ImageBase> void visualize(GrayS32 pixelToRegion, T color, int numSegments)
Visualizes results three ways. 1) Colorized segmented image where each region is given a random color. 2) Each pixel is assigned the mean color through out the region. 3) Black pixels represent the border between regions.
-
main
public static void main(java.lang.String[] args)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG