boofcv.factory.segmentation
Class FactoryImageSegmentation
- java.lang.Object
-
- boofcv.factory.segmentation.FactoryImageSegmentation
-
public class FactoryImageSegmentation extends java.lang.ObjectFactory forImageSuperpixelsalgorithms, which are used to segment the image into super pixels.
-
-
Constructor Summary
Constructors Constructor and Description FactoryImageSegmentation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static <T extends ImageBase>
ImageSuperpixels<T>fh04(ConfigFh04 config, ImageType<T> imageType)Creates a new instance ofSegmentFelzenszwalbHuttenlocher04which is in a wrapper forImageSuperpixels.static <T extends ImageBase>
ImageSuperpixels<T>meanShift(ConfigSegmentMeanShift config, ImageType<T> imageType)Creates a new instance ofSegmentMeanShiftwhich is in a wrapper forImageSuperpixels.static <T extends ImageBase>
ImageSuperpixels<T>slic(ConfigSlic config, ImageType<T> imageType)Creates a new instance ofSegmentSlicwhich is in a wrapper forImageSuperpixels.static <T extends ImageBase>
ImageSuperpixels<T>watershed(ConfigWatershed config, ImageType<T> imageType)Creates an instance ofWatershedVincentSoille1991.
-
-
-
Method Detail
-
meanShift
public static <T extends ImageBase> ImageSuperpixels<T> meanShift(ConfigSegmentMeanShift config, ImageType<T> imageType)
Creates a new instance ofSegmentMeanShiftwhich is in a wrapper forImageSuperpixels.- Type Parameters:
T- Image type- Parameters:
config- Configuration. If null then defaults are used.imageType- Type of input image.- Returns:
- new instance of
ImageSuperpixels - See Also:
SegmentMeanShift
-
slic
public static <T extends ImageBase> ImageSuperpixels<T> slic(ConfigSlic config, ImageType<T> imageType)
Creates a new instance ofSegmentSlicwhich is in a wrapper forImageSuperpixels.- Type Parameters:
T- Image type- Parameters:
config- Configuration.imageType- Type of input image.- Returns:
- new instance of
ImageSuperpixels - See Also:
SegmentSlic
-
fh04
public static <T extends ImageBase> ImageSuperpixels<T> fh04(ConfigFh04 config, ImageType<T> imageType)
Creates a new instance ofSegmentFelzenszwalbHuttenlocher04which is in a wrapper forImageSuperpixels.- Type Parameters:
T- Image type- Parameters:
config- Configuration. If null defaults are used.imageType- Type of input image.- Returns:
- new instance of
ImageSuperpixels - See Also:
SegmentFelzenszwalbHuttenlocher04
-
watershed
public static <T extends ImageBase> ImageSuperpixels<T> watershed(ConfigWatershed config, ImageType<T> imageType)
Creates an instance ofWatershedVincentSoille1991. Watershed works better when initial seeds are provided. In this adaptation of watershed toImageSuperpixelsonly the more basic algorithm is used where each local minima is a region, which causes over segmentation. Watershed also only can process gray scale U8 images. All other image types are converted into that format.- Type Parameters:
T- Image type- Parameters:
config- Configuration. If null default is used.- Returns:
- new instance of
ImageSuperpixels - See Also:
WatershedVincentSoille1991
-
-
DataMelt 3.0 © DataMelt by jWork.ORG