Package inra.ijpb.plugins
Class SetLabelMapPlugin
java.lang.Object
inra.ijpb.plugins.SetLabelMapPlugin
- All Implemented Interfaces:
ij.gui.DialogListener
,ij.plugin.PlugIn
public class SetLabelMapPlugin
extends java.lang.Object
implements ij.plugin.PlugIn, ij.gui.DialogListener
Changes the current LUT such that each label is associated to a different
color, and specifies color of background. Works for both planar images and 3D
stacks.
Opens a dialog to choose a colormap, a background color, and a shuffle
option. Preview option is available.
Notes:
- when shuffle is activated, the result may be different from preview.
- when used with 16 bits or 32-bits images, labels with low values are associated to the same color as background
- Author:
- David Legland
-
Constructor Summary
Constructors Constructor Description SetLabelMapPlugin()
-
Method Summary
Modifier and Type Method Description boolean
dialogItemChanged(ij.gui.GenericDialog gd, java.awt.AWTEvent evt)
void
run(java.lang.String args)
ij.gui.GenericDialog
showDialog()
Displays the dialog.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SetLabelMapPlugin
public SetLabelMapPlugin()
-
-
Method Details
-
run
public void run(java.lang.String args)- Specified by:
run
in interfaceij.plugin.PlugIn
-
showDialog
public ij.gui.GenericDialog showDialog()Displays the dialog.- Returns:
- the dialog
-
dialogItemChanged
public boolean dialogItemChanged(ij.gui.GenericDialog gd, java.awt.AWTEvent evt)- Specified by:
dialogItemChanged
in interfaceij.gui.DialogListener
-