Catalano.Imaging.Filters
Class MedianCut
- java.lang.Object
-
- Catalano.Imaging.Filters.MedianCut
-
- All Implemented Interfaces:
- IApplyInPlace
public class MedianCut extends java.lang.Object implements IApplyInPlace
Median Cut. Median cut is an algorithm to sort data of an arbitrary number of dimensions into series of sets by recursively cutting each set of data at the median point along the longest dimension. Median cut is typically used for color quantization.
-
-
Constructor Summary
Constructors Constructor and Description MedianCut()Initialize a new instance of the MedianCut class.MedianCut(int nCubes)Initialize a new instance of the MedianCut class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.intgetNumberOfCubes()Get Number of maximum cubes.voidsetNumberOfCubes(int nCubes)Set Number of cubes.
-
-
-
Constructor Detail
-
MedianCut
public MedianCut()
Initialize a new instance of the MedianCut class.
-
MedianCut
public MedianCut(int nCubes)
Initialize a new instance of the MedianCut class.
-
-
Method Detail
-
getNumberOfCubes
public int getNumberOfCubes()
Get Number of maximum cubes.- Returns:
- Number of cubes.
-
setNumberOfCubes
public void setNumberOfCubes(int nCubes)
Set Number of cubes.- Parameters:
nCubes- Number of cubes.
-
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