Package inra.ijpb.morphology.geodrec
Enum GeodesicReconstructionType
java.lang.Object
java.lang.Enum<GeodesicReconstructionType>
inra.ijpb.morphology.geodrec.GeodesicReconstructionType
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GeodesicReconstructionType>
,java.lang.constant.Constable
public enum GeodesicReconstructionType extends java.lang.Enum<GeodesicReconstructionType>
Enumeration of the two different types of geodesic reconstruction.
- Author:
- David Legland
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description BY_DILATION
morphological reconstruction by dilationBY_EROSION
morphological reconstruction by erosion -
Method Summary
Modifier and Type Method Description int
getSign()
Returns the sign that can be used in algorithms generic for dilation and erosion.static GeodesicReconstructionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GeodesicReconstructionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
BY_DILATION
morphological reconstruction by dilation -
BY_EROSION
morphological reconstruction by erosion
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getSign
public int getSign()Returns the sign that can be used in algorithms generic for dilation and erosion.- Returns:
- +1 for dilation, and -1 for erosion
-