All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ij.process.MedianCut

java.lang.Object
   |
   +----ij.process.MedianCut

public class MedianCut
extends Object
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 Index

 o MedianCut(int[], int, int)

Method Index

 o convert(int)

Constructors

 o MedianCut
 public MedianCut(int pixels[],
                  int width,
                  int height)

Methods

 o convert
 public Image convert(int maxcubes)

All Packages  Class Hierarchy  This Package  Previous  Next  Index