|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.ThresholdFilter
public class ThresholdFilter
A filter which performs a threshold operation on an image.
Field Summary |
---|
Fields inherited from class com.jhlabs.image.PointFilter |
---|
canFilterIndexColorModel |
Constructor Summary | |
---|---|
ThresholdFilter()
Construct a ThresholdFilter. |
|
ThresholdFilter(int t)
Construct a ThresholdFilter. |
Method Summary | |
---|---|
int |
filterRGB(int x,
int y,
int rgb)
|
int |
getBlack()
Set the color to be used for pixels below the lower threshold. |
int |
getLowerThreshold()
Get the lower threshold value. |
int |
getUpperThreshold()
Get the upper threshold value. |
int |
getWhite()
Get the color to be used for pixels above the upper threshold. |
void |
setBlack(int black)
Set the color to be used for pixels below the lower threshold. |
void |
setLowerThreshold(int lowerThreshold)
Set the lower threshold value. |
void |
setUpperThreshold(int upperThreshold)
Set the upper threshold value. |
void |
setWhite(int white)
Set the color to be used for pixels above the upper threshold. |
java.lang.String |
toString()
|
Methods inherited from class com.jhlabs.image.PointFilter |
---|
filter, setDimensions |
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp |
---|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ThresholdFilter()
public ThresholdFilter(int t)
t
- the threshold valueMethod Detail |
---|
public void setLowerThreshold(int lowerThreshold)
lowerThreshold
- the threshold valuegetLowerThreshold()
public int getLowerThreshold()
setLowerThreshold(int)
public void setUpperThreshold(int upperThreshold)
upperThreshold
- the threshold valuegetUpperThreshold()
public int getUpperThreshold()
setUpperThreshold(int)
public void setWhite(int white)
white
- the colorgetWhite()
public int getWhite()
setWhite(int)
public void setBlack(int black)
black
- the colorgetBlack()
public int getBlack()
setBlack(int)
public int filterRGB(int x, int y, int rgb)
filterRGB
in class PointFilter
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |