Package loci.formats.tiff
Enum Class PhotoInterp
- All Implemented Interfaces:
Serializable,Comparable<PhotoInterp>,java.lang.constant.Constable,loci.common.enumeration.CodedEnum
Utility class for working with TIFF photometric interpretations.
- Author:
- Curtis Rueden ctrueden at wisc.edu, Eric Kjellman egkjellman at wisc.edu, Melissa Linkert melissa at glencoesoftware.com, Chris Allan callan at blackcat.ca
-
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 TypeFieldDescriptionprivate intCode for the IFD type in the actual TIFF file.private static final Map<Integer, PhotoInterp> static final floatstatic final floatstatic final floatDefault luminance values for YCbCr data.private StringMetadata type of the photometric interpretation.private StringGiven name of the photometric interpretation. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePhotoInterp(int code, String name, String metadataType) Default constructor. -
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 class with the specified name.static PhotoInterp[]values()Returns an array containing the constants of this enum class, 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:
-
code
private int codeCode for the IFD type in the actual TIFF file. -
name
Given name of the photometric interpretation. -
metadataType
Metadata type of the photometric interpretation. -
lookup
-
-
Constructor Details
-
PhotoInterp
Default constructor.- Parameters:
code- Integer "code" for the photometric interpretation.name- Given name of the photometric interpretation.metadataType- Metadata type of the photometric interpretation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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()- Specified by:
getCodein interfaceloci.common.enumeration.CodedEnum
-
getName
Retrieves the given name of the photometric interpretation.- Returns:
- See above.
-
getMetadataType
Retrieves the metadata type of the photometric interpretation.- Returns:
- See above.
-