Catalano.Imaging.Filters
Class WeightedMedian
- java.lang.Object
-
- Catalano.Imaging.Filters.WeightedMedian
-
- All Implemented Interfaces:
- IApplyInPlace
public class WeightedMedian extends java.lang.Object implements IApplyInPlace
Weighted Median filter. The Weighted median filter is like median filter, but the weights means the "number of votes" of the position.
-
-
Constructor Summary
Constructors Constructor and Description WeightedMedian()Initializes a new instance of the WeightedMedian class.WeightedMedian(int[][] weight)Initializes a new instance of the WeightedMedian class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.int[][]getWeight()Get Weight.voidsetWeight(int[][] weight)Set Weight.
-
-
-
Constructor Detail
-
WeightedMedian
public WeightedMedian()
Initializes a new instance of the WeightedMedian class.
-
WeightedMedian
public WeightedMedian(int[][] weight)
Initializes a new instance of the WeightedMedian class.- Parameters:
weight- Weight.
-
-
Method Detail
-
getWeight
public int[][] getWeight()
Get Weight.- Returns:
- Weight.
-
setWeight
public void setWeight(int[][] weight)
Set Weight.- Parameters:
weight- Weight.
-
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