Catalano.Imaging.Filters
Class MeanShift
- java.lang.Object
-
- Catalano.Imaging.Filters.MeanShift
-
- All Implemented Interfaces:
- IApplyInPlace
public class MeanShift extends java.lang.Object implements IApplyInPlace
Mean Shift filter.
Mean Shift filter can be used for edge-preserving smoothing or for segmentation. Important edges of an image might be easier detected after mean shift filtering.
It uses a circular flat kernel and the color distance is calculated in the YIQ-color space.
-
-
Constructor Summary
Constructors Constructor and Description MeanShift()Initialize a new instance of the MeanShift class.MeanShift(int radius, float colorDistance)Initialize a new instance of the MeanShift class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.
-
-
-
Constructor Detail
-
MeanShift
public MeanShift()
Initialize a new instance of the MeanShift class.
-
MeanShift
public MeanShift(int radius, float colorDistance)Initialize a new instance of the MeanShift class.- Parameters:
radius- Radius.colorDistance- Color distance.
-
-
Method Detail
-
applyInPlace
public void applyInPlace(FastBitmap fastBitmap)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG