public class ColorThresholder extends AbstractThresholder
ColorThresholder
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
ColorThresholder.ColorSpaces |
Modifier and Type | Field and Description |
---|---|
protected ColorThresholder.ColorSpaces |
colorspace |
protected boolean |
pass1 |
protected boolean |
pass2 |
protected boolean |
pass3 |
protected int[] |
th1 |
protected int[] |
th2 |
protected int[] |
th3 |
mask
Constructor and Description |
---|
ColorThresholder() |
ColorThresholder(boolean pass1,
boolean pass2,
boolean pass3,
int[] th1,
int[] th2,
int[] th3,
ColorThresholder.ColorSpaces colorspace) |
Modifier and Type | Method and Description |
---|---|
BooleanImage |
getBinaryImage(ij.process.ImageProcessor ip) |
protected void |
getLab(ij.process.ImageProcessor ip,
byte[] L,
byte[] a,
byte[] b)
Based on the ImageJ source code.
|
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.
|
protected void |
getYUV(ij.process.ImageProcessor ip,
byte[] Y,
byte[] U,
byte[] V)
Based on the ImageJ source code.
|
void |
showGUI()
Shows the GUI if it exists.
|
java.lang.String |
toString() |
applyMask, getBinaryImage, isSupported, isSupported, setMask
protected boolean pass1
protected boolean pass2
protected boolean pass3
protected int[] th1
protected int[] th2
protected int[] th3
protected ColorThresholder.ColorSpaces colorspace
public ColorThresholder()
public ColorThresholder(boolean pass1, boolean pass2, boolean pass3, int[] th1, int[] th2, int[] th3, ColorThresholder.ColorSpaces colorspace)
pass1
- true: inverts the range of channel 1pass2
- true: inverts the range of channel 2pass3
- true: inverts the range of channel 3th1
- int[]{minimum,maximum} thresholds of channel 1th2
- int[]{minimum,maximum} thresholds of channel 2th3
- int[]{minimum,maximum} thresholds of channel 3colorspace
- public BooleanImage getBinaryImage(ij.process.ImageProcessor ip)
getBinaryImage
in class AbstractThresholder
protected void getLab(ij.process.ImageProcessor ip, byte[] L, byte[] a, byte[] b)
ip
- L
- a
- b
- protected void getYUV(ij.process.ImageProcessor ip, byte[] Y, byte[] U, byte[] V)
ip
- L
- a
- b
- public CustomisableProcess getNewInstance()
CustomisableProcess
public java.lang.String getName()
CustomisableProcess
public void showGUI()
CustomisableProcess
public int getSupportedImageType()
SourceClassifiable
SourceClassifier
public java.lang.String toString()
toString
in class java.lang.Object