- java.lang.Object
-
- ij.plugin.Thresholder
-
- All Implemented Interfaces:
Measurements
,PlugIn
,java.awt.event.ItemListener
,java.util.EventListener
public class Thresholder extends java.lang.Object implements PlugIn, Measurements, java.awt.event.ItemListener
This plugin implements the Process/Binary/Make Binary and Convert to Mask commands.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
backgrounds
static java.lang.String[]
methods
-
Fields inherited from interface ij.measure.Measurements
ADD_TO_OVERLAY, ALL_STATS, AREA, AREA_FRACTION, CENTER_OF_MASS, CENTROID, CIRCULARITY, ELLIPSE, FERET, INTEGRATED_DENSITY, INVERT_Y, KURTOSIS, LABELS, LIMIT, MAX_STANDARDS, MEAN, MEDIAN, MIN_MAX, MODE, NaN_EMPTY_CELLS, PERIMETER, RECT, SCIENTIFIC_NOTATION, SHAPE_DESCRIPTORS, SKEWNESS, SLICE, STACK_POSITION, STD_DEV
-
-
Constructor Summary
Constructors Constructor Description Thresholder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ByteProcessor
createMask(ImagePlus imp)
Returns an 8-bit binary (0 and 255) threshold mask that has the same dimensions as this image.void
itemStateChanged(java.awt.event.ItemEvent e)
void
run(java.lang.String arg)
This method is called when the plugin is loaded.static void
setBackground(java.lang.String background)
static void
setMethod(java.lang.String method)
-
-
-
Method Detail
-
run
public void run(java.lang.String arg)
Description copied from interface:PlugIn
This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.
-
createMask
public static ByteProcessor createMask(ImagePlus imp)
Returns an 8-bit binary (0 and 255) threshold mask that has the same dimensions as this image.
-
setMethod
public static void setMethod(java.lang.String method)
-
setBackground
public static void setBackground(java.lang.String background)
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Specified by:
itemStateChanged
in interfacejava.awt.event.ItemListener
-
-