类 KeyFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.KeyFilter
-
- 所有已实现的接口:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class KeyFilter extends AbstractBufferedImageOp
An experimental filter which can be used for keying against a clean shot. Given a source image, a clean image and a destination image, the filter replaces all pixels in the source which nearly equal the equivalent clean pixel by destination pixels.
-
-
构造器概要
构造器 构造器 说明 KeyFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)floatgetBTolerance()Get the brightness tolerance.java.awt.image.BufferedImagegetCleanImage()Get the clean image.java.awt.image.BufferedImagegetDestination()Get the destination image.floatgetHTolerance()Get the hue tolerance.floatgetSTolerance()Get the saturation tolerance.voidsetBTolerance(float bTolerance)Set the brightness tolerance of the image in the range 0..1.voidsetCleanImage(java.awt.image.BufferedImage cleanImage)Get the clean image.voidsetDestination(java.awt.image.BufferedImage destination)Set the destination image.voidsetHTolerance(float hTolerance)Set the hue tolerance of the image in the range 0..1.voidsetSTolerance(float sTolerance)Set the saturation tolerance of the image in the range 0..1.java.lang.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setHTolerance
public void setHTolerance(float hTolerance)
Set the hue tolerance of the image in the range 0..1.- 参数:
hTolerance- the tolerance- 另请参阅:
getHTolerance()
-
getHTolerance
public float getHTolerance()
Get the hue tolerance.- 返回:
- the tolerance
- 另请参阅:
setHTolerance(float)
-
setSTolerance
public void setSTolerance(float sTolerance)
Set the saturation tolerance of the image in the range 0..1.- 参数:
sTolerance- the tolerance- 另请参阅:
getSTolerance()
-
getSTolerance
public float getSTolerance()
Get the saturation tolerance.- 返回:
- the tolerance
- 另请参阅:
setSTolerance(float)
-
setBTolerance
public void setBTolerance(float bTolerance)
Set the brightness tolerance of the image in the range 0..1.- 参数:
bTolerance- the tolerance- 另请参阅:
getBTolerance()
-
getBTolerance
public float getBTolerance()
Get the brightness tolerance.- 返回:
- the tolerance
- 另请参阅:
setBTolerance(float)
-
setDestination
public void setDestination(java.awt.image.BufferedImage destination)
Set the destination image.- 参数:
destination- the destination image- 另请参阅:
getDestination()
-
getDestination
public java.awt.image.BufferedImage getDestination()
Get the destination image.- 返回:
- the destination image
- 另请参阅:
setDestination(java.awt.image.BufferedImage)
-
setCleanImage
public void setCleanImage(java.awt.image.BufferedImage cleanImage)
Get the clean image.- 参数:
cleanImage- the clean image- 另请参阅:
getCleanImage()
-
getCleanImage
public java.awt.image.BufferedImage getCleanImage()
Get the clean image.- 返回:
- the clean image
- 另请参阅:
setCleanImage(java.awt.image.BufferedImage)
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-