public class DynamicColorLUT extends Object
Modifier and Type | Field and Description |
---|---|
private int |
coffset |
private HashMap<Integer,Integer> |
colors |
private Random |
rand |
Constructor and Description |
---|
DynamicColorLUT()
Constructor with a (seeded) random generator and channel offset = 20.
|
DynamicColorLUT(Random rand)
Constructor for a specific random generator and channel offset = 20..
|
DynamicColorLUT(Random rand,
int channeloffset)
Constructor for a specific random generator and a given channel offset
|
Modifier and Type | Method and Description |
---|---|
int |
getColor(int key)
Get the color for a given key.
|
void |
setColor(int key,
int color)
Set the color for given key.
|
private Random rand
private int coffset
public DynamicColorLUT()
public DynamicColorLUT(Random rand)
public DynamicColorLUT(Random rand, int channeloffset)
rand
- random generatorchanneloffset
- the minimum value of R, G and Bpublic void setColor(int key, int color)
public int getColor(int key)
key
is not present.key
- lookup table key (or index)Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.