public class ColorMapper extends Object
Modifier and Type | Field and Description |
---|---|
protected ColorTable |
colorTable |
protected boolean |
integerScale |
protected double |
max |
protected double |
min |
Constructor and Description |
---|
ColorMapper() |
Modifier and Type | Method and Description |
---|---|
Color |
getColor(double mappedValue) |
ColorRGB |
getColorRGB(double mappedValue) |
ColorTable |
getColorTable() |
double[] |
getMinMax()
Returns the mapping bounds
|
void |
map(String measurement,
ColorTable colorTable) |
void |
setMinMax(double min,
double max)
Sets the LUT mapping bounds.
|
protected ColorTable colorTable
protected boolean integerScale
protected double min
protected double max
public void map(String measurement, ColorTable colorTable)
public Color getColor(double mappedValue)
public ColorRGB getColorRGB(double mappedValue)
public void setMinMax(double min, double max)
min
- the mapping lower bound (i.e., the highest measurement value for
the LUT scale). It is automatically calculated (the default) when
set to Double.NaNmax
- the mapping upper bound (i.e., the highest measurement value for
the LUT scale).It is automatically calculated (the default) when
set to Double.NaN.public double[] getMinMax()
public ColorTable getColorTable()
Copyright © 2015–2021 Fiji. All rights reserved.