public class KeyFilter extends AbstractBufferedImageOp
Modifier and Type | Field and Description |
---|---|
private float |
bTolerance |
private BufferedImage |
cleanImage |
private BufferedImage |
destination |
private float |
hTolerance |
private float |
sTolerance |
Constructor and Description |
---|
KeyFilter() |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
float |
getBTolerance()
Get the brightness tolerance.
|
BufferedImage |
getCleanImage()
Get the clean image.
|
BufferedImage |
getDestination()
Get the destination image.
|
float |
getHTolerance()
Get the hue tolerance.
|
float |
getSTolerance()
Get the saturation tolerance.
|
void |
setBTolerance(float bTolerance)
Set the brightness tolerance of the image in the range 0..1.
|
void |
setCleanImage(BufferedImage cleanImage)
Get the clean image.
|
void |
setDestination(BufferedImage destination)
Set the destination image.
|
void |
setHTolerance(float hTolerance)
Set the hue tolerance of the image in the range 0..1.
|
void |
setSTolerance(float sTolerance)
Set the saturation tolerance of the image in the range 0..1.
|
String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private float hTolerance
private float sTolerance
private float bTolerance
private BufferedImage destination
private BufferedImage cleanImage
public KeyFilter()
public void setHTolerance(float hTolerance)
hTolerance
- the tolerancegetHTolerance()
public float getHTolerance()
setHTolerance(float)
public void setSTolerance(float sTolerance)
sTolerance
- the tolerancegetSTolerance()
public float getSTolerance()
setSTolerance(float)
public void setBTolerance(float bTolerance)
bTolerance
- the tolerancegetBTolerance()
public float getBTolerance()
setBTolerance(float)
public void setDestination(BufferedImage destination)
destination
- the destination imagegetDestination()
public BufferedImage getDestination()
setDestination(java.awt.image.BufferedImage)
public void setCleanImage(BufferedImage cleanImage)
cleanImage
- the clean imagegetCleanImage()
public BufferedImage getCleanImage()
setCleanImage(java.awt.image.BufferedImage)
public BufferedImage filter(BufferedImage src, BufferedImage dst)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses