Enum OpenCVDistanceMask
- java.lang.Object
-
- java.lang.Enum<OpenCVDistanceMask>
-
- science.aist.imaging.opencv.imageprocessing.domain.OpenCVDistanceMask
-
- All Implemented Interfaces:
Serializable
,Comparable<OpenCVDistanceMask>
public enum OpenCVDistanceMask extends Enum<OpenCVDistanceMask>
The mask Size of the OpenCV OpenCVDistanceMap
OpenCV: Size of the distance transform mask. It can be 3, 5, or CV_DIST_MASK_PRECISE (the latter option is only supported by the first function). In case of the CV_DIST_L1 or CV_DIST_C distance type, the parameter is forced to 3 because a 3x3 mask gives the same result as 5x5 or any larger aperture.
https://docs.opencv.org/2.4/modules/imgproc/doc/miscellaneous_transformations.html
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MASK_3
CV_DIST_MASK_3MASK_5
CV_DIST_MASK_5MASK_PRECISE
CV_DIST_MASK_PRECISE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OpenCVDistanceMask
valueOf(String name)
Returns the enum constant of this type with the specified name.static OpenCVDistanceMask[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MASK_3
public static final OpenCVDistanceMask MASK_3
CV_DIST_MASK_3
-
MASK_5
public static final OpenCVDistanceMask MASK_5
CV_DIST_MASK_5
-
MASK_PRECISE
public static final OpenCVDistanceMask MASK_PRECISE
CV_DIST_MASK_PRECISE
-
-
Method Detail
-
values
public static OpenCVDistanceMask[] 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 (OpenCVDistanceMask c : OpenCVDistanceMask.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenCVDistanceMask 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
-
-