Package boofcv.alg.segmentation.ms
Class SegmentMeanShiftSearchGray<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.segmentation.ms.SegmentMeanShiftSearch<T>
boofcv.alg.segmentation.ms.SegmentMeanShiftSearchGray<T>
- All Implemented Interfaces:
Stoppable
Implementation of SegmentMeanShiftSearch for gray-scale images
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ddogleg.struct.Stoppable
Stoppable.Stopped -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DogArray<Point2D_F32>protected InterpolatePixelS<T>protected floatFields inherited from class boofcv.alg.segmentation.ms.SegmentMeanShiftSearch
convergenceTol, image, maxColorDistanceSq, maxIterations, modeColor, modeLocation, modeMemberCount, modeX, modeY, pixelToMode, quickMode, radiusX, radiusY, spacialTable, stopRequested, weightTable, widthX, widthY -
Constructor Summary
ConstructorsConstructorDescriptionSegmentMeanShiftSearchGray(int maxIterations, float convergenceTol, InterpolatePixelS<T> interpolate, int radiusX, int radiusY, float maxColorDistance, boolean fast) -
Method Summary
Methods inherited from class boofcv.alg.segmentation.ms.SegmentMeanShiftSearch
distanceSq, getModeColor, getModeLocation, getPixelToRegion, getRegionMemberCount, isStopRequested, requestStop, weight
-
Field Details
-
interpolate
-
meanGray
protected float meanGray -
history
-
-
Constructor Details
-
SegmentMeanShiftSearchGray
public SegmentMeanShiftSearchGray(int maxIterations, float convergenceTol, InterpolatePixelS<T> interpolate, int radiusX, int radiusY, float maxColorDistance, boolean fast)
-
-
Method Details
-
process
Performs mean-shift clustering on the input image- Specified by:
processin classSegmentMeanShiftSearch<T extends ImageGray<T>>- Parameters:
image- Input image
-
getImageType
- Specified by:
getImageTypein classSegmentMeanShiftSearch<T extends ImageGray<T>>
-
findPeak
protected void findPeak(float cx, float cy, float gray) Uses mean-shift to find the peak. Returns the peak as an index in the image data array.- Parameters:
gray- The color value which mean-shift is trying to find a region which minimises it
-