Package loci.formats.tiff
Enum PhotoInterp
- All Implemented Interfaces:
Serializable,Comparable<PhotoInterp>,java.lang.constant.Constable,CodedEnum
Utility class for working with TIFF photometric interpretations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final floatstatic final floatDefault luminance values for YCbCr data. -
Method Summary
Modifier and TypeMethodDescriptionstatic PhotoInterpget(int code) Retrieves a photometric interpretation by reverse lookup of its "code".intgetCode()Retrieves the metadata type of the photometric interpretation.getName()Retrieves the given name of the photometric interpretation.static PhotoInterpReturns 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.
-
Enum Constant Details
-
WHITE_IS_ZERO
-
BLACK_IS_ZERO
-
RGB
-
RGB_PALETTE
-
TRANSPARENCY_MASK
-
CMYK
-
Y_CB_CR
-
CIE_LAB
-
CFA_ARRAY
-
-
Field Details
-
LUMA_RED
public static final float LUMA_REDDefault luminance values for YCbCr data.- See Also:
-
LUMA_GREEN
public static final float LUMA_GREEN- See Also:
-
LUMA_BLUE
public static final float LUMA_BLUE- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
Retrieves a photometric interpretation by reverse lookup of its "code".- Parameters:
code- The code to look up.- Returns:
- The
PhotoInterpinstance for thecodeornullif it does not exist.
-
getCode
public int getCode() -
getName
Retrieves the given name of the photometric interpretation.- Returns:
- See above.
-
getMetadataType
Retrieves the metadata type of the photometric interpretation.- Returns:
- See above.
-