Package inra.ijpb.plugins
Class InteractiveMorphologicalReconstruction
java.lang.Object
inra.ijpb.plugins.InteractiveMorphologicalReconstruction
- All Implemented Interfaces:
ij.gui.DialogListener,ij.plugin.filter.ExtendedPlugInFilter,ij.plugin.filter.PlugInFilter
public class InteractiveMorphologicalReconstruction
extends java.lang.Object
implements ij.plugin.filter.ExtendedPlugInFilter, ij.gui.DialogListener
Plugin for performing interactive morphological reconstruction by dilation or
by erosion on grayscale images.
In contrast with the non-interactive plugin, the active image is considered
the mask image, while the marker image is constructed by user-defined point
ROIs. The marker image is used to initialize the reconstruction, and the mask
image is used to constrain it. The connectivity can also be specified.
- Author:
- Ignacio Arganda-Carreras (ignacio.arganda@ehu.eus)
-
Field Summary
Fields inherited from interface ij.plugin.filter.ExtendedPlugInFilter
KEEP_PREVIEWFields 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 InteractiveMorphologicalReconstruction() -
Method Summary
Modifier and Type Method Description booleandialogItemChanged(ij.gui.GenericDialog gd, java.awt.AWTEvent evt)Called when a dialog widget has been modified: recomputes option values from dialog content.voidrun(ij.process.ImageProcessor image)Apply the current filter settings to process the given image.voidsetNPasses(int nPasses)intsetup(java.lang.String arg, ij.ImagePlus imp)Called at the beginning of the process to know if the plugin can be run with current image, and at the end to finalize.intshowDialog(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
-
InteractiveMorphologicalReconstruction
public InteractiveMorphologicalReconstruction()
-
-
Method Details
-
setup
public int setup(java.lang.String arg, ij.ImagePlus imp)Called at the beginning of the process to know if the plugin can be run with current image, and at the end to finalize.- Specified by:
setupin interfaceij.plugin.filter.PlugInFilter
-
showDialog
public int showDialog(ij.ImagePlus imp, java.lang.String command, ij.plugin.filter.PlugInFilterRunner pfr)- Specified by:
showDialogin interfaceij.plugin.filter.ExtendedPlugInFilter
-
dialogItemChanged
public boolean dialogItemChanged(ij.gui.GenericDialog gd, java.awt.AWTEvent evt)Called when a dialog widget has been modified: recomputes option values from dialog content.- Specified by:
dialogItemChangedin interfaceij.gui.DialogListener
-
setNPasses
public void setNPasses(int nPasses)- Specified by:
setNPassesin interfaceij.plugin.filter.ExtendedPlugInFilter
-
run
public void run(ij.process.ImageProcessor image)Apply the current filter settings to process the given image.- Specified by:
runin interfaceij.plugin.filter.PlugInFilter
-