public abstract class AbstractThresholder extends java.lang.Object implements java.io.Serializable, CustomisableProcess, SourceClassifiable
Modifier and Type | Field and Description |
---|---|
protected boolean[] |
mask |
Constructor and Description |
---|
AbstractThresholder() |
Modifier and Type | Method and Description |
---|---|
protected boolean[] |
applyMask(boolean[] pixel)
Sets any pixel which lies outside of the mask to 'false'.
|
BooleanImage |
getBinaryImage(ij.ImagePlus imp) |
abstract BooleanImage |
getBinaryImage(ij.process.ImageProcessor ip) |
boolean |
isSupported(ij.ImagePlus imp)
Returns 'true' if the type of image is supported.
|
boolean |
isSupported(ij.process.ImageProcessor ip)
Returns 'true' if the type of image is supported.
|
void |
setMask(ZoneUnit mask,
int width,
int height)
Sets a mask.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getNewInstance, showGUI
getSupportedImageType
public boolean isSupported(ij.ImagePlus imp)
SourceClassifiable
isSupported
in interface SourceClassifiable
public boolean isSupported(ij.process.ImageProcessor ip)
SourceClassifiable
isSupported
in interface SourceClassifiable
public abstract BooleanImage getBinaryImage(ij.process.ImageProcessor ip)
public BooleanImage getBinaryImage(ij.ImagePlus imp)
protected boolean[] applyMask(boolean[] pixel)
pixel
- public void setMask(ZoneUnit mask, int width, int height)
mask
- width
- Image widthheight
- Image height