jjil.algorithm
Class GrayThreshold
java.lang.Object
jjil.core.PipelineStage
jjil.algorithm.GrayThreshold
public class GrayThreshold
- extends PipelineStage
Threshold. Output is a Gray8Image with values greater than threshold
set to Byte.MAX_VALUE, below threshold set to Byte.MIN_VALUE.
- Author:
- webb
Constructor Summary |
GrayThreshold(int nThreshold)
Creates a new instance of GrayThreshold |
Method Summary |
void |
push(Image image)
Threshold gray image. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GrayThreshold
public GrayThreshold(int nThreshold)
- Creates a new instance of GrayThreshold
- Parameters:
nThreshold
- threshold value.
push
public void push(Image image)
throws Error
- Threshold gray image. Output is Byte.MAX_VALUE over threshold,
Byte.MIN_VALUE under.
- Specified by:
push
in class PipelineStage
- Parameters:
image
- the input image (and output)
- Throws:
Error
- if the image is not a gray 8-bit
image.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- String describing class instance.