- java.lang.Object
-
- ij.plugin.Thresholder
-
- All Implemented Interfaces:
Measurements,PlugIn,ItemListener,EventListener
public class Thresholder extends Object implements PlugIn, Measurements, ItemListener
This plugin implements the Process/Binary/Make Binary and Convert to Mask commands.
-
-
Field Summary
Fields Modifier and Type Field Description static String[]backgroundsstatic 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 ByteProcessorcreateMask(ImagePlus imp)Returns an 8-bit binary (0 and 255) threshold mask that has the same dimensions as this image.voiditemStateChanged(ItemEvent e)voidrun(String arg)This method is called when the plugin is loaded.static voidsetBackground(String background)static voidsetMethod(String method)
-
-
-
Method Detail
-
run
public void run(String arg)
Description copied from interface:PlugInThis 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(String method)
-
setBackground
public static void setBackground(String background)
-
itemStateChanged
public void itemStateChanged(ItemEvent e)
- Specified by:
itemStateChangedin interfaceItemListener
-
-