public class Color_Inspector_3D.Median_Cut extends Object
Constructor and Description |
---|
Median_Cut(int[] pixels,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
Image |
convert(int maxcubes)
Uses Heckbert's median-cut algorithm to divide the color space defined by
"hist" into "maxcubes" cubes.
|
Image |
convertToByte(int maxcubes)
This is a version of convert that returns a ByteProcessor.
|
public Image convert(int maxcubes)
public Image convertToByte(int maxcubes)
Copyright © 2015–2021 Fiji. All rights reserved.