Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/process/MedianCut.html
Дата изменения: Thu Dec 2 23:03:11 2010 Дата индексирования: Mon Oct 1 22:17:26 2012 Кодировка: Поисковые слова: п п п п п п п п п п п п п |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.process.MedianCut
public class MedianCut
Converts an RGB image to 8-bit index color using Heckbert's median-cut color quantization algorithm. Based on median.c by Anton Kruger from the September, 1994 issue of Dr. Dobbs Journal.
Constructor Summary | |
---|---|
MedianCut(ColorProcessor ip)
|
|
MedianCut(int[] pixels,
int width,
int height)
|
Method Summary | |
---|---|
java.awt.Image |
convert(int maxcubes)
Uses Heckbert's median-cut algorithm to divide the color space defined by "hist" into "maxcubes" cubes. |
ImageProcessor |
convertToByte(int maxcubes)
This is a version of convert that returns a ByteProcessor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MedianCut(int[] pixels, int width, int height)
public MedianCut(ColorProcessor ip)
Method Detail |
---|
public java.awt.Image convert(int maxcubes)
public ImageProcessor convertToByte(int maxcubes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |