类 NoiseFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.PointFilter
-
- org.meteoinfo.image.filter.NoiseFilter
-
- 所有已实现的接口:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class NoiseFilter extends PointFilter
A filter which adds random noise into an image.
-
-
字段概要
字段 修饰符和类型 字段 说明 static intGAUSSIANGaussian distribution for the noise.static intUNIFORMUniform distribution for the noise.-
从类继承的字段 org.meteoinfo.image.filter.PointFilter
canFilterIndexColorModel
-
-
构造器概要
构造器 构造器 说明 NoiseFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intfilterRGB(int x, int y, int rgb)intgetAmount()Get the amount of noise.floatgetDensity()Get the density of the noise.intgetDistribution()Get the distribution of the noise.booleangetMonochrome()Get whether to use monochrome noise.voidsetAmount(int amount)Set the amount of effect.voidsetDensity(float density)Set the density of the noise.voidsetDistribution(int distribution)Set the distribution of the noise.voidsetMonochrome(boolean monochrome)Set whether to use monochrome noise.java.lang.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.PointFilter
filter, setDimensions
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setAmount
public void setAmount(int amount)
Set the amount of effect.- 参数:
amount- the amount min-value 0 max-value 1- 另请参阅:
getAmount()
-
getAmount
public int getAmount()
Get the amount of noise.- 返回:
- the amount
- 另请参阅:
setAmount(int)
-
setDistribution
public void setDistribution(int distribution)
Set the distribution of the noise.- 参数:
distribution- the distribution- 另请参阅:
getDistribution()
-
getDistribution
public int getDistribution()
Get the distribution of the noise.- 返回:
- the distribution
- 另请参阅:
setDistribution(int)
-
setMonochrome
public void setMonochrome(boolean monochrome)
Set whether to use monochrome noise.- 参数:
monochrome- true for monochrome noise- 另请参阅:
getMonochrome()
-
getMonochrome
public boolean getMonochrome()
Get whether to use monochrome noise.- 返回:
- true for monochrome noise
- 另请参阅:
setMonochrome(boolean)
-
setDensity
public void setDensity(float density)
Set the density of the noise.- 参数:
density- the density- 另请参阅:
getDensity()
-
getDensity
public float getDensity()
Get the density of the noise.- 返回:
- the density
- 另请参阅:
setDensity(float)
-
filterRGB
public int filterRGB(int x, int y, int rgb)- 指定者:
filterRGB在类中PointFilter
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-