public class GrayscaleThresholder extends AbstractThresholder
Modifier and Type | Field and Description |
---|---|
protected java.lang.Double |
max |
protected java.lang.Double |
min |
mask
Constructor and Description |
---|
GrayscaleThresholder() |
GrayscaleThresholder(java.lang.Double min,
java.lang.Double max) |
Modifier and Type | Method and Description |
---|---|
protected boolean[] |
getBinaryImage(ij.process.ByteProcessor ip,
int min,
int max) |
protected boolean[] |
getBinaryImage(ij.process.FloatProcessor ip,
float min,
float max) |
BooleanImage |
getBinaryImage(ij.process.ImageProcessor ip) |
protected boolean[] |
getBinaryImage(ij.process.ShortProcessor ip,
short min,
short max) |
java.lang.String |
getName()
Returns the name of the process.
|
CustomisableProcess |
getNewInstance()
Returns a new Instance of the original object.
|
int |
getSupportedImageType()
Returns image-type flags which are supported by the filter.
|
void |
showGUI()
Shows the GUI if it exists.
|
java.lang.String |
toString() |
applyMask, getBinaryImage, isSupported, isSupported, setMask
public GrayscaleThresholder()
public GrayscaleThresholder(java.lang.Double min, java.lang.Double max)
public BooleanImage getBinaryImage(ij.process.ImageProcessor ip)
getBinaryImage
in class AbstractThresholder
protected boolean[] getBinaryImage(ij.process.FloatProcessor ip, float min, float max)
protected boolean[] getBinaryImage(ij.process.ShortProcessor ip, short min, short max)
protected boolean[] getBinaryImage(ij.process.ByteProcessor ip, int min, int max)
public CustomisableProcess getNewInstance()
CustomisableProcess
public java.lang.String getName()
CustomisableProcess
public void showGUI()
CustomisableProcess
public java.lang.String toString()
toString
in class java.lang.Object
public int getSupportedImageType()
SourceClassifiable
SourceClassifier