All Packages Class Hierarchy This Package Previous Next Index
Class com.jhlabs.image.GaussianFilter
java.lang.Object
|
+----java.awt.image.ImageFilter
|
+----com.jhlabs.image.WholeImageFilter
|
+----com.jhlabs.image.ConvolveFilter
|
+----com.jhlabs.image.GaussianFilter
- public class GaussianFilter
- extends com.jhlabs.image.ConvolveFilter
A filter which applies Gaussian blur to an image. This is a subclass of ConvolveFilter
which simply creates a kernel with a Gaussian distribution for blurring.
-
radius
-
-
GaussianFilter()
- Construct a Gaussian filter
-
GaussianFilter(int)
- Construct a Gaussian filter
-
getRadius()
- Get the radius of the kernel.
-
makeKernel(int)
-
-
setRadius(int)
- Set the radius of the kernel, and hence the amount of blur.
-
toString()
-
radius
protected int radius
GaussianFilter
public GaussianFilter()
- Construct a Gaussian filter
GaussianFilter
public GaussianFilter(int radius)
- Construct a Gaussian filter
- Parameters:
- radius - blur radius in pixels
setRadius
public void setRadius(int radius)
- Set the radius of the kernel, and hence the amount of blur. The bigger the radius, the longer this filter will take.
- Parameters:
- radius - the radius of the blur in pixels.
getRadius
public int getRadius()
- Get the radius of the kernel.
- Returns:
- the radius
makeKernel
public static com.jhlabs.image.Kernel makeKernel(int radius)
toString
public java.lang.String toString()
- Overrides:
- toString in class com.jhlabs.image.ConvolveFilter
All Packages Class Hierarchy This Package Previous Next Index