Package adams.data.opencv
Enum InterpolationType
- java.lang.Object
-
- java.lang.Enum<InterpolationType>
-
- adams.data.opencv.InterpolationType
-
- All Implemented Interfaces:
Serializable
,Comparable<InterpolationType>
public enum InterpolationType extends Enum<InterpolationType>
Defines interpolation types.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CV_INTER_AREA
CV_INTER_CUBIC
CV_INTER_LANCZOS4
CV_INTER_LINEAR
CV_INTER_NN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
Returns the OpenCV type.static InterpolationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static InterpolationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CV_INTER_NN
public static final InterpolationType CV_INTER_NN
-
CV_INTER_LINEAR
public static final InterpolationType CV_INTER_LINEAR
-
CV_INTER_CUBIC
public static final InterpolationType CV_INTER_CUBIC
-
CV_INTER_AREA
public static final InterpolationType CV_INTER_AREA
-
CV_INTER_LANCZOS4
public static final InterpolationType CV_INTER_LANCZOS4
-
-
Method Detail
-
values
public static InterpolationType[] 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 (InterpolationType c : InterpolationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InterpolationType 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
-
getType
public int getType()
Returns the OpenCV type.- Returns:
- the type
-
-