Enum ContourApproximationModesEnum
- java.lang.Object
-
- java.lang.Enum<ContourApproximationModesEnum>
-
- edu.wpi.grip.generated.opencv_imgproc.enumeration.ContourApproximationModesEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ContourApproximationModesEnum>
public enum ContourApproximationModesEnum extends java.lang.Enum<ContourApproximationModesEnum>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHAIN_APPROX_NONE
stores absolutely all the contour points.CHAIN_APPROX_SIMPLE
compresses horizontal, vertical, and diagonal segments and leaves only their end points.CHAIN_APPROX_TC89_KCOS
applies one of the flavors of the Teh-Chin chain approximation algorithm @cite TehChin89CHAIN_APPROX_TC89_L1
applies one of the flavors of the Teh-Chin chain approximation algorithm @cite TehChin89
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContourApproximationModesEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ContourApproximationModesEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHAIN_APPROX_NONE
public static final ContourApproximationModesEnum CHAIN_APPROX_NONE
stores absolutely all the contour points. That is, any 2 subsequent points (x1,y1) and (x2,y2) of the contour will be either horizontal, vertical or diagonal neighbors, that is, max(abs(x1-x2),abs(y2-y1))==1.
-
CHAIN_APPROX_SIMPLE
public static final ContourApproximationModesEnum CHAIN_APPROX_SIMPLE
compresses horizontal, vertical, and diagonal segments and leaves only their end points. For example, an up-right rectangular contour is encoded with 4 points.
-
CHAIN_APPROX_TC89_L1
public static final ContourApproximationModesEnum CHAIN_APPROX_TC89_L1
applies one of the flavors of the Teh-Chin chain approximation algorithm @cite TehChin89
-
CHAIN_APPROX_TC89_KCOS
public static final ContourApproximationModesEnum CHAIN_APPROX_TC89_KCOS
applies one of the flavors of the Teh-Chin chain approximation algorithm @cite TehChin89
-
-
Method Detail
-
values
public static ContourApproximationModesEnum[] 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 (ContourApproximationModesEnum c : ContourApproximationModesEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContourApproximationModesEnum 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 namejava.lang.NullPointerException
- if the argument is null
-
-