Package qupath.lib.images.servers
Enum Class PixelType
- All Implemented Interfaces:
Serializable
,Comparable<PixelType>
,Constable
Image bit-depths and types. Not all may be well-supported; in general,
expected image types are UINT8, UINT16 and FLOAT32.
- Author:
- Pete Bankhead
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Number of bits per pixel.int
Number of bytes per pixel.Get a number representing the minimum value permitted by this type (may be negative).Get a number representing the maximum value permitted by this type.boolean
Returns true if the type is a floating point representation.boolean
Returns true if the type is a signed integer representation.boolean
Returns true if the type is an unsigned integer representation.static PixelType
Returns the enum constant of this class with the specified name.static PixelType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UINT8
8-bit unsigned integer -
INT8
8-bit signed integer -
UINT16
16-bit unsigned integer -
INT16
16-bit signed integer -
UINT32
32-bit unsigned integer (not supported by BufferedImage) -
INT32
32-bit signed integer -
FLOAT32
32-bit floating point -
FLOAT64
64-bit floating point
-
-
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
-
getBitsPerPixel
public int getBitsPerPixel()Number of bits per pixel.- Returns:
- See Also:
-
getLowerBound
Get a number representing the minimum value permitted by this type (may be negative).- Returns:
-
getUpperBound
Get a number representing the maximum value permitted by this type.- Returns:
-
getBytesPerPixel
public int getBytesPerPixel()Number of bytes per pixel.- Returns:
- See Also:
-
isSignedInteger
public boolean isSignedInteger()Returns true if the type is a signed integer representation.- Returns:
-
isUnsignedInteger
public boolean isUnsignedInteger()Returns true if the type is an unsigned integer representation.- Returns:
-
isFloatingPoint
public boolean isFloatingPoint()Returns true if the type is a floating point representation.- Returns:
-