public static enum ColorMaps.CommonLabelMaps extends Enum<ColorMaps.CommonLabelMaps>
Enum Constant and Description |
---|
FIRE
Colormap containing the Fire colors
|
GLASBEY
Colormap containing Glasbey colors
|
GLASBEY_BRIGHT
Colormap containing Glasbey colors
|
GLASBEY_DARK
Colormap containing Glasbey colors
|
GOLDEN_ANGLE
A colormap with contrasted adjacent colors, useful for label images
|
GRAYS
Colormap containing gray values
|
ICE
Colormap containing blue-white values
|
JET
Matlab's jet colormap
|
MAIN_COLORS
Colormap containing only few main colors
|
MIXED_COLORS
Colormap containing mixed colors
|
REDGREEN
Colormap containing Red to green values
|
RGB332
Colormap containing RGB332
|
SPECTRUM
Colormap containing a whole range of colors
|
Modifier and Type | Method and Description |
---|---|
byte[][] |
computeLut(int nValues,
boolean shuffle)
Compute look-up table for current color map
|
static ColorMaps.CommonLabelMaps |
fromLabel(String label)
Determines the color map from its label.
|
static String[] |
getAllLabels() |
String |
getLabel()
Get label name associated to color map
|
String |
toString() |
static ColorMaps.CommonLabelMaps |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ColorMaps.CommonLabelMaps[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorMaps.CommonLabelMaps GRAYS
public static final ColorMaps.CommonLabelMaps FIRE
public static final ColorMaps.CommonLabelMaps GLASBEY
public static final ColorMaps.CommonLabelMaps GLASBEY_DARK
public static final ColorMaps.CommonLabelMaps GLASBEY_BRIGHT
public static final ColorMaps.CommonLabelMaps GOLDEN_ANGLE
public static final ColorMaps.CommonLabelMaps ICE
public static final ColorMaps.CommonLabelMaps SPECTRUM
public static final ColorMaps.CommonLabelMaps JET
public static final ColorMaps.CommonLabelMaps RGB332
public static final ColorMaps.CommonLabelMaps MAIN_COLORS
public static final ColorMaps.CommonLabelMaps MIXED_COLORS
public static final ColorMaps.CommonLabelMaps REDGREEN
public static ColorMaps.CommonLabelMaps[] values()
for (ColorMaps.CommonLabelMaps c : ColorMaps.CommonLabelMaps.values()) System.out.println(c);
public static ColorMaps.CommonLabelMaps valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getLabel()
public String toString()
toString
in class Enum<ColorMaps.CommonLabelMaps>
public byte[][] computeLut(int nValues, boolean shuffle)
nValues
- number of colors for the mapshuffle
- flag to shuffle table values after its constructionpublic static String[] getAllLabels()
public static ColorMaps.CommonLabelMaps fromLabel(String label)
label
- the name of the color mapIllegalArgumentException
- if label is not recognized.Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.