public static enum DirectionalFilter.Operation extends Enum<DirectionalFilter.Operation>
Enum Constant and Description |
---|
CLOSING
The morphological closing operation
|
DILATION
The morphological dilation operation
|
EROSION
The morphological erosion operation
|
MEAN
The neighborhood mean (average) operation
|
MEDIAN
The neighborhood median operation
|
OPENING
The morphological opening operation
|
Modifier and Type | Method and Description |
---|---|
ij.process.ImageProcessor |
apply(ij.process.ImageProcessor image,
Strel strel)
Applies this operation to the input image.
|
static DirectionalFilter.Operation |
fromLabel(String opLabel)
Determines the operation type from its label.
|
static String[] |
getAllLabels()
Returns the labels for all operations within this enumeration.
|
String |
toString() |
static DirectionalFilter.Operation |
valueOf(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.
|
public static final DirectionalFilter.Operation EROSION
public static final DirectionalFilter.Operation DILATION
public static final DirectionalFilter.Operation OPENING
public static final DirectionalFilter.Operation CLOSING
public static final DirectionalFilter.Operation MEAN
public static final DirectionalFilter.Operation MEDIAN
public static DirectionalFilter.Operation[] values()
for (DirectionalFilter.Operation c : DirectionalFilter.Operation.values()) System.out.println(c);
public static DirectionalFilter.Operation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic ij.process.ImageProcessor apply(ij.process.ImageProcessor image, Strel strel)
image
- theimage to processstrel
- the structuring element to usepublic String toString()
toString
in class Enum<DirectionalFilter.Operation>
public static String[] getAllLabels()
public static DirectionalFilter.Operation fromLabel(String opLabel)
opLabel
- operation labelIllegalArgumentException
- if label is not recognized.Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.