Enum OpenCVDistanceLabel
- java.lang.Object
-
- java.lang.Enum<OpenCVDistanceLabel>
-
- science.aist.imaging.opencv.imageprocessing.domain.OpenCVDistanceLabel
-
- All Implemented Interfaces:
Serializable
,Comparable<OpenCVDistanceLabel>
public enum OpenCVDistanceLabel extends Enum<OpenCVDistanceLabel>
Label Type for
OpenCVDistanceMap
OpenCV: Type of the label array to build. If labelType==DIST_LABEL_CCOMP then each connected component of zeros in src (as well as all the non-zero pixels closest to the connected component) will be assigned the same label. If labelType==DIST_LABEL_PIXEL then each zero pixel (and all the non-zero pixels closest to it) gets its own label.
https://docs.opencv.org/2.4/modules/imgproc/doc/miscellaneous_transformations.html
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OpenCVDistanceLabel
valueOf(String name)
Returns the enum constant of this type with the specified name.static OpenCVDistanceLabel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CCOMP
public static final OpenCVDistanceLabel CCOMP
CV_DIST_LABEL_CCOMP
-
PIXEL
public static final OpenCVDistanceLabel PIXEL
CV_DIST_LABEL_PIXEL
-
-
Method Detail
-
values
public static OpenCVDistanceLabel[] 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 (OpenCVDistanceLabel c : OpenCVDistanceLabel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenCVDistanceLabel 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
-
-