public static enum ColorClustering.Channel extends Enum<ColorClustering.Channel>
Enum Constant and Description |
---|
a
a channel from Lab color space
|
b
b channel from Lab color space
|
Blue
Blue channel from RGB color space
|
Brightness
Brightness channel from HSB color space
|
Green
Green channel from RGB color space
|
Hue
Hue channel from HSB color space
|
Lightness
L channel from Lab color space
|
Red
Red channel from RGB color space
|
Saturation
Saturation channel from HSB color space
|
Modifier and Type | Method and Description |
---|---|
static ColorClustering.Channel |
fromLabel(String chLabel)
Get channel from label (label is a String).
|
static String[] |
getAllLabels()
Get all labels in a String[] structure.
|
static int |
numChannels()
Returns total number of channels, static method.
|
String |
toString()
Turn channel to string.
|
static ColorClustering.Channel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ColorClustering.Channel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorClustering.Channel Red
public static final ColorClustering.Channel Green
public static final ColorClustering.Channel Blue
public static final ColorClustering.Channel Lightness
public static final ColorClustering.Channel a
public static final ColorClustering.Channel b
public static final ColorClustering.Channel Hue
public static final ColorClustering.Channel Saturation
public static final ColorClustering.Channel Brightness
public static ColorClustering.Channel[] values()
for (ColorClustering.Channel c : ColorClustering.Channel.values()) System.out.println(c);
public static ColorClustering.Channel 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 toString()
toString
in class Enum<ColorClustering.Channel>
public static int numChannels()
public static String[] getAllLabels()
public static ColorClustering.Channel fromLabel(String chLabel)
chLabel
- Copyright © 2015–2021 Fiji. All rights reserved.