public class Threshold_Image extends Object implements ij.plugin.filter.PlugInFilter, ij.gui.DialogListener
| Modifier and Type | Field and Description |
|---|---|
private double |
black
black value for current image
|
private boolean |
currentSliceOnly
flag if only current slice is to be thresholded
|
private double |
m_bg
background pixel value
|
private double |
m_fg
foreground pixel value
|
private MTBImage |
m_img
image to threshold
|
private ij.ImagePlus |
m_imgPlus
original ImagePlus
|
private double |
m_thresh
threshold
|
private MTBImage |
m_threshImg
thresholded image
|
private double[] |
minmax_img
min and max gray value of the current image
|
private double |
white
white value for current image
|
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 and Description |
|---|
Threshold_Image() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dialogItemChanged(ij.gui.GenericDialog gd,
AWTEvent e) |
void |
run(ij.process.ImageProcessor ip) |
int |
setup(String arg,
ij.ImagePlus imp) |
private boolean |
thresholdSetupDialog()
Dialog for choosing thresholding parameters
|
private MTBImage m_img
private MTBImage m_threshImg
private ij.ImagePlus m_imgPlus
private double m_thresh
private double m_fg
private double m_bg
private double black
private double white
private double[] minmax_img
private boolean currentSliceOnly
public int setup(String arg, ij.ImagePlus imp)
setup in interface ij.plugin.filter.PlugInFilterpublic void run(ij.process.ImageProcessor ip)
run in interface ij.plugin.filter.PlugInFilterprivate boolean thresholdSetupDialog()
public boolean dialogItemChanged(ij.gui.GenericDialog gd,
AWTEvent e)
dialogItemChanged in interface ij.gui.DialogListenerCopyright © 2010–2025 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.