public class MorphologicalFilterPlugin extends Object implements ij.plugin.filter.ExtendedPlugInFilter, ij.gui.DialogListener
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, NO_UNDO_RESET, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
Constructor and Description |
---|
MorphologicalFilterPlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
dialogItemChanged(ij.gui.GenericDialog gd,
AWTEvent evt) |
ij.ImagePlus |
exec(ij.ImagePlus image,
Morphology.Operation op,
Strel strel)
Deprecated.
use the process method instead
|
ij.ImagePlus |
process(ij.ImagePlus image,
Morphology.Operation op,
Strel strel)
Applies the specified morphological operation with specified structuring
element to the input image.
|
void |
run(ij.process.ImageProcessor image) |
void |
setNPasses(int nPasses) |
int |
setup(String arg,
ij.ImagePlus imp)
Setup function is called in the beginning of the process, but also at the
end.
|
int |
showDialog(ij.ImagePlus imp,
String command,
ij.plugin.filter.PlugInFilterRunner pfr) |
public int setup(String arg, ij.ImagePlus imp)
setup
in interface ij.plugin.filter.PlugInFilter
public int showDialog(ij.ImagePlus imp, String command, ij.plugin.filter.PlugInFilterRunner pfr)
showDialog
in interface ij.plugin.filter.ExtendedPlugInFilter
public boolean dialogItemChanged(ij.gui.GenericDialog gd, AWTEvent evt)
dialogItemChanged
in interface ij.gui.DialogListener
public void setNPasses(int nPasses)
setNPasses
in interface ij.plugin.filter.ExtendedPlugInFilter
public void run(ij.process.ImageProcessor image)
run
in interface ij.plugin.filter.PlugInFilter
@Deprecated public ij.ImagePlus exec(ij.ImagePlus image, Morphology.Operation op, Strel strel)
image
- the input image (grayscale or color)op
- the operation to applystrel
- the structuring element to use for the operationpublic ij.ImagePlus process(ij.ImagePlus image, Morphology.Operation op, Strel strel)
image
- the input image (grayscale or color)op
- the operation to applystrel
- the structuring element to use for the operationCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.