类 LensBlurFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.LensBlurFilter
-
- 所有已实现的接口:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class LensBlurFilter extends AbstractBufferedImageOp
A filter which use FFTs to simulate lens blur on an image.
-
-
构造器概要
构造器 构造器 说明 LensBlurFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)floatgetBloom()Get the bloom factor.floatgetBloomThreshold()Get the bloom threshold.floatgetRadius()Get the radius of the kernel.intgetSides()Get the number of sides of the aperture.voidsetBloom(float bloom)Set the bloom factor.voidsetBloomThreshold(float bloomThreshold)Set the bloom threshold.voidsetRadius(float radius)Set the radius of the kernel, and hence the amount of blur.voidsetSides(int sides)Set the number of sides of the aperture.java.lang.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setRadius
public void setRadius(float radius)
Set the radius of the kernel, and hence the amount of blur.- 参数:
radius- the radius of the blur in pixels.- 另请参阅:
getRadius()
-
getRadius
public float getRadius()
Get the radius of the kernel.- 返回:
- the radius
- 另请参阅:
setRadius(float)
-
setSides
public void setSides(int sides)
Set the number of sides of the aperture.- 参数:
sides- the number of sides- 另请参阅:
getSides()
-
getSides
public int getSides()
Get the number of sides of the aperture.- 返回:
- the number of sides
- 另请参阅:
setSides(int)
-
setBloom
public void setBloom(float bloom)
Set the bloom factor.- 参数:
bloom- the bloom factor- 另请参阅:
getBloom()
-
getBloom
public float getBloom()
Get the bloom factor.- 返回:
- the bloom factor
- 另请参阅:
setBloom(float)
-
setBloomThreshold
public void setBloomThreshold(float bloomThreshold)
Set the bloom threshold.- 参数:
bloomThreshold- the bloom threshold- 另请参阅:
getBloomThreshold()
-
getBloomThreshold
public float getBloomThreshold()
Get the bloom threshold.- 返回:
- the bloom threshold
- 另请参阅:
setBloomThreshold(float)
-
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
-
-