Package inra.ijpb.morphology.directional
Enum DirectionalFilter.Operation
java.lang.Object
java.lang.Enum<DirectionalFilter.Operation>
inra.ijpb.morphology.directional.DirectionalFilter.Operation
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DirectionalFilter.Operation>
,java.lang.constant.Constable
- Enclosing class:
- DirectionalFilter
public static enum DirectionalFilter.Operation extends java.lang.Enum<DirectionalFilter.Operation>
A pre-defined set of operations.
-
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 CLOSING
The morphological closing operationDILATION
The morphological dilation operationEROSION
The morphological erosion operationMEAN
The neighborhood mean (average) operationMEDIAN
The neighborhood median operationOPENING
The morphological opening operation -
Method Summary
Modifier and Type Method Description ij.process.ImageProcessor
apply(ij.process.ImageProcessor image, Strel strel)
Applies this operation to the input image.static DirectionalFilter.Operation
fromLabel(java.lang.String opLabel)
Determines the operation type from its label.static java.lang.String[]
getAllLabels()
Returns the labels for all operations within this enumeration.java.lang.String
toString()
static DirectionalFilter.Operation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DirectionalFilter.Operation[]
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, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
EROSION
The morphological erosion operation -
DILATION
The morphological dilation operation -
OPENING
The morphological opening operation -
CLOSING
The morphological closing operation -
MEAN
The neighborhood mean (average) operation -
MEDIAN
The neighborhood median operation
-
-
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
-
apply
Applies this operation to the input image.- Parameters:
image
- theimage to processstrel
- the structuring element to use- Returns:
- the filtered image
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Enum<DirectionalFilter.Operation>
-
getAllLabels
public static java.lang.String[] getAllLabels()Returns the labels for all operations within this enumeration.- Returns:
- the labels for all operations within this enumeration.
-
fromLabel
Determines the operation type from its label.- Parameters:
opLabel
- operation label- Returns:
- operation
- Throws:
java.lang.IllegalArgumentException
- if label is not recognized.
-