Enum RetrievalModesEnum
- java.lang.Object
-
- java.lang.Enum<RetrievalModesEnum>
-
- edu.wpi.grip.generated.opencv_imgproc.enumeration.RetrievalModesEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RetrievalModesEnum>
public enum RetrievalModesEnum extends java.lang.Enum<RetrievalModesEnum>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RETR_CCOMP
retrieves all of the contours and organizes them into a two-level hierarchy.RETR_EXTERNAL
retrieves only the extreme outer contours.RETR_FLOODFILL
RETR_LIST
retrieves all of the contours without establishing any hierarchical relationships.RETR_TREE
retrieves all of the contours and reconstructs a full hierarchy of nested contours.
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RetrievalModesEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RetrievalModesEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RETR_EXTERNAL
public static final RetrievalModesEnum RETR_EXTERNAL
retrieves only the extreme outer contours. It sets `hierarchy[i][2]=hierarchy[i][3]=-1` for all the contours.
-
RETR_LIST
public static final RetrievalModesEnum RETR_LIST
retrieves all of the contours without establishing any hierarchical relationships.
-
RETR_CCOMP
public static final RetrievalModesEnum RETR_CCOMP
retrieves all of the contours and organizes them into a two-level hierarchy. At the top level, there are external boundaries of the components. At the second level, there are boundaries of the holes. If there is another contour inside a hole of a connected component, it is still put at the top level.
-
RETR_TREE
public static final RetrievalModesEnum RETR_TREE
retrieves all of the contours and reconstructs a full hierarchy of nested contours.
-
RETR_FLOODFILL
public static final RetrievalModesEnum RETR_FLOODFILL
-
-
Method Detail
-
values
public static RetrievalModesEnum[] 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 (RetrievalModesEnum c : RetrievalModesEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RetrievalModesEnum 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
-
-