| com.sun.media.jai.opimage.ColorQuantizerOpImage com.sun.media.jai.opimage.MedianCutOpImage
Field Summary | |
HistogramHash | histogram The histgram hash. |
Constructor Summary | |
public | MedianCutOpImage(RenderedImage source, Map config, ImageLayout layout, int maxColorNum, int upperBound, ROI roi, int xPeriod, int yPeriod) Constructs an MedianCutOpImage . |
Method Summary | |
public void | medianCut(int expectedColorNum) Applies the Heckbert's median-cut algorithm to partition the color
space into maxcubes cubes. | void | quickSort(int a, int lo0, int hi0, int longDimMask) | protected synchronized void | train() |
histogram | HistogramHash histogram(Code) | | The histgram hash.
|
MedianCutOpImage | public MedianCutOpImage(RenderedImage source, Map config, ImageLayout layout, int maxColorNum, int upperBound, ROI roi, int xPeriod, int yPeriod)(Code) | | Constructs an MedianCutOpImage .
Parameters: source - The source image. |
medianCut | public void medianCut(int expectedColorNum)(Code) | | Applies the Heckbert's median-cut algorithm to partition the color
space into maxcubes cubes. The centroids
of each cube are are used to create a color table.
|
quickSort | void quickSort(int a, int lo0, int hi0, int longDimMask)(Code) | | |
train | protected synchronized void train()(Code) | | |
|
|