Package org.nd4j.enums
Enum CoordinateTransformationMode
- java.lang.Object
-
- java.lang.Enum<CoordinateTransformationMode>
-
- org.nd4j.enums.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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASYMMETRIC
HALF_PIXEL
HALF_PIXEL_NN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
static CoordinateTransformationMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static CoordinateTransformationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASYMMETRIC
public static final CoordinateTransformationMode ASYMMETRIC
-
HALF_PIXEL
public static final CoordinateTransformationMode HALF_PIXEL
-
HALF_PIXEL_NN
public static final CoordinateTransformationMode HALF_PIXEL_NN
-
-
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 nameNullPointerException
- if the argument is null
-
getIndex
public int getIndex()
-
-