Enum OpenCVDistanceType
- java.lang.Object
-
- java.lang.Enum<OpenCVDistanceType>
-
- science.aist.imaging.opencv.imageprocessing.domain.OpenCVDistanceType
-
- All Implemented Interfaces:
Serializable
,Comparable<OpenCVDistanceType>
public enum OpenCVDistanceType extends Enum<OpenCVDistanceType>
Distance Types 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 OpenCVDistanceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static OpenCVDistanceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
L1
public static final OpenCVDistanceType L1
CV_DIST_L1
-
L2
public static final OpenCVDistanceType L2
CV_DIST_L2
-
C
public static final OpenCVDistanceType C
CV_DIST_C
-
-
Method Detail
-
values
public static OpenCVDistanceType[] 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 (OpenCVDistanceType c : OpenCVDistanceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenCVDistanceType 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
-
-