com.jhlabs.image
Class NoiseFilter
- BufferedImageOp, Cloneable
A filter which adds random noise into an image.
static int | GAUSSIAN - Gaussian distribution for the noise.
|
static int | UNIFORM - Uniform distribution for the noise.
|
GAUSSIAN
public static final int GAUSSIAN
Gaussian distribution for the noise.
UNIFORM
public static final int UNIFORM
Uniform distribution for the noise.
NoiseFilter
public NoiseFilter()
getAmount
public int getAmount()
Get the amount of noise.
getDensity
public float getDensity()
Get the density of the noise.
getDistribution
public int getDistribution()
Get the distribution of the noise.
getMonochrome
public boolean getMonochrome()
Get whether to use monochrome noise.
- true for monochrome noise
setAmount
public void setAmount(int amount)
Set the amount of effect.
setDensity
public void setDensity(float density)
Set the density of the noise.
setDistribution
public void setDistribution(int distribution)
Set the distribution of the noise.
distribution
- the distribution
setMonochrome
public void setMonochrome(boolean monochrome)
Set whether to use monochrome noise.
monochrome
- true for monochrome noise
toString
public String toString()