Package boofcv.factory.segmentation
Class FactorySegmentationAlg
java.lang.Object
boofcv.factory.segmentation.FactorySegmentationAlg
Factory for low level segmentation algorithms.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ImageBase<T>>
SegmentFelzenszwalbHuttenlocher04<T>fh04
(@Nullable ConfigFh04 config, ImageType<T> imageType) static <T extends ImageBase<T>>
SegmentMeanShift<T>meanShift
(@Nullable ConfigSegmentMeanShift config, ImageType<T> imageType) Creates an instance ofSegmentMeanShift
.static <T extends ImageBase<T>>
ComputeRegionMeanColor<T>regionMeanColor
(ImageType<T> imageType) Creates an instance ofComputeRegionMeanColor
for the specified image type.static <T extends ImageBase<T>>
SegmentSlic<T>slic
(@Nullable ConfigSlic config, ImageType<T> imageType) static WatershedVincentSoille1991
watershed
(ConnectRule rule) static <T extends ImageBase<T>>
FhEdgeWeights<T>weightsFelzenszwalb04
(ConnectRule rule, ImageType<T> imageType)
-
Constructor Details
-
FactorySegmentationAlg
public FactorySegmentationAlg()
-
-
Method Details
-
regionMeanColor
public static <T extends ImageBase<T>> ComputeRegionMeanColor<T> regionMeanColor(ImageType<T> imageType) Creates an instance ofComputeRegionMeanColor
for the specified image type.- Parameters:
imageType
- image type- Returns:
- ComputeRegionMeanColor
-
meanShift
public static <T extends ImageBase<T>> SegmentMeanShift<T> meanShift(@Nullable @Nullable ConfigSegmentMeanShift config, ImageType<T> imageType) Creates an instance ofSegmentMeanShift
. Uniform distributions are used for spacial and color weights.- Parameters:
config
- Specify configuration for mean-shiftimageType
- Type of input image- Returns:
- SegmentMeanShift
-
weightsFelzenszwalb04
public static <T extends ImageBase<T>> FhEdgeWeights<T> weightsFelzenszwalb04(ConnectRule rule, ImageType<T> imageType) -
fh04
public static <T extends ImageBase<T>> SegmentFelzenszwalbHuttenlocher04<T> fh04(@Nullable @Nullable ConfigFh04 config, ImageType<T> imageType) -
slic
public static <T extends ImageBase<T>> SegmentSlic<T> slic(@Nullable @Nullable ConfigSlic config, ImageType<T> imageType) -
watershed
-