Enum Class PixelType

java.lang.Object
java.lang.Enum<PixelType>
qupath.lib.images.servers.PixelType
All Implemented Interfaces:
Serializable, Comparable<PixelType>, Constable

public enum PixelType extends Enum<PixelType>
Image bit-depths and types. Not all may be well-supported; in general, expected image types are UINT8, UINT16 and FLOAT32.
Author:
Pete Bankhead
  • Enum Constant Details

    • UINT8

      public static final PixelType UINT8
      8-bit unsigned integer
    • INT8

      public static final PixelType INT8
      8-bit signed integer
    • UINT16

      public static final PixelType UINT16
      16-bit unsigned integer
    • INT16

      public static final PixelType INT16
      16-bit signed integer
    • UINT32

      public static final PixelType UINT32
      32-bit unsigned integer (not supported by BufferedImage)
    • INT32

      public static final PixelType INT32
      32-bit signed integer
    • FLOAT32

      public static final PixelType FLOAT32
      32-bit floating point
    • FLOAT64

      public static final PixelType FLOAT64
      64-bit floating point
  • Method Details

    • values

      public static PixelType[] 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

      public static PixelType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getBitsPerPixel

      public int getBitsPerPixel()
      Number of bits per pixel.
      Returns:
      See Also:
    • getLowerBound

      public Number getLowerBound()
      Get a number representing the minimum value permitted by this type (may be negative).
      Returns:
    • getUpperBound

      public Number 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: