edu.washington.biostr.sig.volume.colors
Class ColorLookupTables
java.lang.Object
edu.washington.biostr.sig.volume.colors.ColorLookupTables
public class ColorLookupTables
- extends Object
Provide a convenience method for generating a ColorLookupTable.
- Version:
- 1
- Author:
- Eider Moore
|
Field Summary |
static int |
NUM_VALUES
I assume that the maximum resolution that all but the most advanced
color schemes will have is 1000 values (with a single color, its 256. |
|
Method Summary |
static ColorLookupTable |
getTable(ColorScheme positive,
ColorScheme negative,
VolumeArray array)
|
static ColorLookupTable |
getTable(ColorScheme positive,
double max,
double posThreshold,
double posWindow,
ColorScheme negative,
double min,
double negThreshold,
double negWindow,
double alpha,
boolean integer)
Generate a color lookup table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NUM_VALUES
public static final int NUM_VALUES
- I assume that the maximum resolution that all but the most advanced
color schemes will have is 1000 values (with a single color, its 256.
With warm or cold, its around 766).
- See Also:
- Constant Field Values
ColorLookupTables
public ColorLookupTables()
getTable
public static ColorLookupTable getTable(ColorScheme positive,
double max,
double posThreshold,
double posWindow,
ColorScheme negative,
double min,
double negThreshold,
double negWindow,
double alpha,
boolean integer)
- Generate a color lookup table.
- Parameters:
positive - The color scheme for positive values.max - The maximum valueposThreshold - The lower bound on positive numbersposWindow - The upper bound on positive numbersnegative - The colorscheme to use for negative valuesmin - The minimum valuenegThreshold - The lower bound on negative numbersnegWindow - The upper bound on negative numbersalpha - The level of transparency to use.integer - If the data is stored as floats or integers, false will always work but will consume more memory.
- Returns:
- A new table with the above settings.
getTable
public static ColorLookupTable getTable(ColorScheme positive,
ColorScheme negative,
VolumeArray array)
Copyright © 2006 University of Washington. All Rights Reserved.