Package adams.data.opencv
Enum BorderType
- java.lang.Object
-
- java.lang.Enum<BorderType>
-
- adams.data.opencv.BorderType
-
- All Implemented Interfaces:
Serializable
,Comparable<BorderType>
public enum BorderType extends Enum<BorderType>
Border types used by OpenCV. https://docs.opencv.org/4.6.0/d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BORDER_CONSTANT
BORDER_DEFAULT
BORDER_ISOLATED
BORDER_REFLECT
BORDER_REFLECT_101
BORDER_REFLECT101
BORDER_REPLICATE
BORDER_TRANSPARENT
BORDER_WRAP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
Returns the border type.static BorderType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BorderType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BORDER_CONSTANT
public static final BorderType BORDER_CONSTANT
-
BORDER_REPLICATE
public static final BorderType BORDER_REPLICATE
-
BORDER_REFLECT
public static final BorderType BORDER_REFLECT
-
BORDER_WRAP
public static final BorderType BORDER_WRAP
-
BORDER_REFLECT_101
public static final BorderType BORDER_REFLECT_101
-
BORDER_TRANSPARENT
public static final BorderType BORDER_TRANSPARENT
-
BORDER_REFLECT101
public static final BorderType BORDER_REFLECT101
-
BORDER_DEFAULT
public static final BorderType BORDER_DEFAULT
-
BORDER_ISOLATED
public static final BorderType BORDER_ISOLATED
-
-
Method Detail
-
values
public static BorderType[] 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 (BorderType c : BorderType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BorderType 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 border type.- Returns:
- the type
-
-