com.jhlabs.image
Class ThresholdFilter
- BufferedImageOp, Cloneable
public class ThresholdFilter
A filter which performs a threshold operation on an image.
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.
|
String | toString()
|
ThresholdFilter
public ThresholdFilter()
Construct a ThresholdFilter.
ThresholdFilter
public ThresholdFilter(int t)
Construct a ThresholdFilter.
getBlack
public int getBlack()
Set the color to be used for pixels below the lower threshold.
getLowerThreshold
public int getLowerThreshold()
Get the lower threshold value.
getUpperThreshold
public int getUpperThreshold()
Get the upper threshold value.
getWhite
public int getWhite()
Get the color to be used for pixels above the upper threshold.
setBlack
public void setBlack(int black)
Set the color to be used for pixels below the lower threshold.
setLowerThreshold
public void setLowerThreshold(int lowerThreshold)
Set the lower threshold value.
lowerThreshold
- the threshold value
setUpperThreshold
public void setUpperThreshold(int upperThreshold)
Set the upper threshold value.
upperThreshold
- the threshold value
setWhite
public void setWhite(int white)
Set the color to be used for pixels above the upper threshold.
toString
public String toString()