public enum PhotoInterp extends java.lang.Enum<PhotoInterp> implements loci.common.enumeration.CodedEnum
Enum Constant and Description |
---|
BLACK_IS_ZERO |
CFA_ARRAY |
CIE_LAB |
CMYK |
RGB |
RGB_PALETTE |
TRANSPARENCY_MASK |
WHITE_IS_ZERO |
Y_CB_CR |
Modifier and Type | Field and Description |
---|---|
private int |
code
Code for the IFD type in the actual TIFF file.
|
private static java.util.Map<java.lang.Integer,PhotoInterp> |
lookup |
static float |
LUMA_BLUE |
static float |
LUMA_GREEN |
static float |
LUMA_RED
Default luminance values for YCbCr data.
|
private java.lang.String |
metadataType
Metadata type of the photometric interpretation.
|
private java.lang.String |
name
Given name of the photometric interpretation.
|
Modifier and Type | Method and Description |
---|---|
static PhotoInterp |
get(int code)
Retrieves a photometric interpretation by reverse lookup of its "code".
|
int |
getCode() |
java.lang.String |
getMetadataType()
Retrieves the metadata type of the photometric interpretation.
|
java.lang.String |
getName()
Retrieves the given name of the photometric interpretation.
|
static PhotoInterp |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PhotoInterp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PhotoInterp WHITE_IS_ZERO
public static final PhotoInterp BLACK_IS_ZERO
public static final PhotoInterp RGB
public static final PhotoInterp RGB_PALETTE
public static final PhotoInterp TRANSPARENCY_MASK
public static final PhotoInterp CMYK
public static final PhotoInterp Y_CB_CR
public static final PhotoInterp CIE_LAB
public static final PhotoInterp CFA_ARRAY
public static final float LUMA_RED
public static final float LUMA_GREEN
public static final float LUMA_BLUE
private int code
private java.lang.String name
private java.lang.String metadataType
private static final java.util.Map<java.lang.Integer,PhotoInterp> lookup
public static PhotoInterp[] values()
for (PhotoInterp c : PhotoInterp.values()) System.out.println(c);
public static PhotoInterp valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static PhotoInterp get(int code)
code
- The code to look up.PhotoInterp
instance for the
code
or null
if it does not exist.public int getCode()
getCode
in interface loci.common.enumeration.CodedEnum
public java.lang.String getName()
public java.lang.String getMetadataType()
Copyright © 2020 Open Microscopy Environment