Package inra.ijpb.plugins
Class MorphologicalFilterPlugin
java.lang.Object
inra.ijpb.plugins.MorphologicalFilterPlugin
- All Implemented Interfaces:
ij.gui.DialogListener
,ij.plugin.filter.ExtendedPlugInFilter
,ij.plugin.filter.PlugInFilter
public class MorphologicalFilterPlugin
extends java.lang.Object
implements ij.plugin.filter.ExtendedPlugInFilter, ij.gui.DialogListener
Plugin for computing various morphological filters on gray scale or color
images.
- Author:
- David Legland
-
Field Summary
Fields inherited from interface ij.plugin.filter.ExtendedPlugInFilter
KEEP_PREVIEW
Fields inherited from interface ij.plugin.filter.PlugInFilter
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 Summary
Constructors Constructor Description MorphologicalFilterPlugin()
-
Method Summary
Modifier and Type Method Description boolean
dialogItemChanged(ij.gui.GenericDialog gd, java.awt.AWTEvent evt)
ij.ImagePlus
exec(ij.ImagePlus image, Morphology.Operation op, Strel strel)
Deprecated.use the process method insteadij.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(java.lang.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, java.lang.String command, ij.plugin.filter.PlugInFilterRunner pfr)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MorphologicalFilterPlugin
public MorphologicalFilterPlugin()
-
-
Method Details
-
setup
public int setup(java.lang.String arg, ij.ImagePlus imp)Setup function is called in the beginning of the process, but also at the end. It is also used for displaying "about" frame.- Specified by:
setup
in interfaceij.plugin.filter.PlugInFilter
-
showDialog
public int showDialog(ij.ImagePlus imp, java.lang.String command, ij.plugin.filter.PlugInFilterRunner pfr)- Specified by:
showDialog
in interfaceij.plugin.filter.ExtendedPlugInFilter
-
dialogItemChanged
public boolean dialogItemChanged(ij.gui.GenericDialog gd, java.awt.AWTEvent evt)- Specified by:
dialogItemChanged
in interfaceij.gui.DialogListener
-
setNPasses
public void setNPasses(int nPasses)- Specified by:
setNPasses
in interfaceij.plugin.filter.ExtendedPlugInFilter
-
run
public void run(ij.process.ImageProcessor image)- Specified by:
run
in interfaceij.plugin.filter.PlugInFilter
-
exec
Deprecated.use the process method insteadApplies the specified morphological operation with specified structuring element to the input image.- Parameters:
image
- the input image (grayscale or color)op
- the operation to applystrel
- the structuring element to use for the operation- Returns:
- the result of morphological operation applied to the input image
-
process
Applies the specified morphological operation with specified structuring element to the input image.- Parameters:
image
- the input image (grayscale or color)op
- the operation to applystrel
- the structuring element to use for the operation- Returns:
- the result of morphological operation applied to the input image
-