Documentation of 'boofcv.struct.image.ImageDataType' Java class
ImageDataType
boofcv.struct.image

Enum ImageDataType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ImageDataType>


    public enum ImageDataType
    extends java.lang.Enum<ImageDataType>
    Describes the physical characteristics of the internal primitive data types inside the image
    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      F
      floating point image
      F32
      32-bit floating point image
      F64
      64-bit floating point image
      I
      Integer image
      I16
      16-bit integer image
      I8
      8-bit integer image
      S16
      Signed 16-bit integer image
      S32
      Signed 32-bit integer image
      S64
      Signed 64-bit integer image
      S8
      Signed 8-bit image
      U16
      Unsigned 16-bit image
      U8
      Unsigned 8-bit image
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static ImageDataType classToType(java.lang.Class imageClass) 
      java.lang.Class getDataType()
      The primitive data type used by each pixel.
      double getMaxValue()
      Returns the maximum allowed value for data elements in this data type
      double getMinValue()
      Returns the minimum allowed value for data elements in this data type
      int getNumBits()
      Number of bits per pixel in the image.
      java.lang.Class getSumType()
      Type of data used when summing elements in the image.
      boolean isAbstract()
      If the image is an abstract data type or not.
      boolean isInteger()
      If each pixel is an integer or not.
      boolean isSigned()
      If the image has a signed or unsigned data type.
      static java.lang.Class typeToInterleavedClass(ImageDataType type) 
      static java.lang.Class typeToSingleClass(ImageDataType type) 
      static ImageDataType valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ImageDataType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static ImageDataType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ImageDataType c : ImageDataType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ImageDataType valueOf(java.lang.String name)
        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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • classToType

        public static ImageDataType classToType(java.lang.Class imageClass)
      • typeToSingleClass

        public static java.lang.Class typeToSingleClass(ImageDataType type)
      • typeToInterleavedClass

        public static java.lang.Class typeToInterleavedClass(ImageDataType type)
      • getNumBits

        public int getNumBits()
        Number of bits per pixel in the image.
      • isAbstract

        public boolean isAbstract()
        If the image is an abstract data type or not.
      • isSigned

        public boolean isSigned()
        If the image has a signed or unsigned data type.
      • isInteger

        public boolean isInteger()
        If each pixel is an integer or not.
      • getDataType

        public java.lang.Class getDataType()
        The primitive data type used by each pixel.
      • getSumType

        public java.lang.Class getSumType()
        Type of data used when summing elements in the image.
      • getMaxValue

        public double getMaxValue()
        Returns the maximum allowed value for data elements in this data type
      • getMinValue

        public double getMinValue()
        Returns the minimum allowed value for data elements in this data type

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.