Enum CoordinateTransformationMode

  • All Implemented Interfaces:
    Serializable, Comparable<CoordinateTransformationMode>

    public enum CoordinateTransformationMode
    extends Enum<CoordinateTransformationMode>
    Transformation function of the coordinate in the resized NdArray to the coordinate in the original NdArray ASYMMETRIC original = resized / scale HALF_PIXEL original = (resized + 0.5) / scale - 0.5 HALF_PIXEL_NN original = (resized + 0.5) / scale It is used to retain old behaviour in ResizeNearest
    • Method Detail

      • values

        public static CoordinateTransformationMode[] 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 (CoordinateTransformationMode c : CoordinateTransformationMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CoordinateTransformationMode valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getIndex

        public int getIndex()