Documentation of 'Catalano.Imaging.Filters.MedianCut' Java class
MedianCut
Catalano.Imaging.Filters

Class 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.
    • 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: IApplyInPlace
        Apply filter to an image.
        Specified by:
        applyInPlace in interface IApplyInPlace
        Parameters:
        fastBitmap - Image to be processed.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.