public static enum LabelMapMorphologicalFilteringPlugin.Operation extends Enum<LabelMapMorphologicalFilteringPlugin.Operation>
 // Use a generic dialog to define an operator 
 GenericDialog gd = new GenericDialog();
 gd.addChoice("Operation", Operation.getAllLabels();
 gd.showDialog();
 Operation op = Operation.fromLabel(gd.getNextChoice());
 // Apply the operation on the current image
 ImageStack image = IJ.getImage().getStack();
 ImageStack res = op.process(image, ChamferMask3D.BORGEFORS, 2.0);
 | Enum Constant and Description | 
|---|
CLOSING
Morphological closing (dilation followed by erosion) 
 | 
DILATION
Morphological dilation (local maxima) 
 | 
EROSION
Morphological erosion (local minima) 
 | 
OPENING
Morphological opening (erosion followed by dilation) 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static LabelMapMorphologicalFilteringPlugin.Operation | 
fromLabel(String opLabel)
Determines the operation type from its label. 
 | 
static String[] | 
getAllLabels()
Returns the list of labels for this enumeration. 
 | 
ij.process.ImageProcessor | 
process(ij.process.ImageProcessor image,
       ChamferMask2D mask,
       double radius)
Applies the current operator to the input image. 
 | 
ij.ImageStack | 
process(ij.ImageStack image,
       ChamferMask3D mask,
       double radius)
Applies the current operator to the input 3D image. 
 | 
String | 
toString()  | 
static LabelMapMorphologicalFilteringPlugin.Operation | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static LabelMapMorphologicalFilteringPlugin.Operation[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final LabelMapMorphologicalFilteringPlugin.Operation EROSION
public static final LabelMapMorphologicalFilteringPlugin.Operation DILATION
public static final LabelMapMorphologicalFilteringPlugin.Operation OPENING
public static final LabelMapMorphologicalFilteringPlugin.Operation CLOSING
public static LabelMapMorphologicalFilteringPlugin.Operation[] values()
for (LabelMapMorphologicalFilteringPlugin.Operation c : LabelMapMorphologicalFilteringPlugin.Operation.values()) System.out.println(c);
public static LabelMapMorphologicalFilteringPlugin.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 process(ij.process.ImageProcessor image,
                                         ChamferMask2D mask,
                                         double radius)
image - the image to processmask - the chamfer mask used for propagating distancesradius - the radius used to threshold the distance mappublic ij.ImageStack process(ij.ImageStack image,
                             ChamferMask3D mask,
                             double radius)
image - the image to processmask - the chamfer mask used for propagating distancesradius - the radius used to threshold the distance mappublic String toString()
toString in class Enum<LabelMapMorphologicalFilteringPlugin.Operation>public static String[] getAllLabels()
public static LabelMapMorphologicalFilteringPlugin.Operation fromLabel(String opLabel)
opLabel - the label of the operationIllegalArgumentException - if label is not recognized.Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.