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.


Variable Index

 o radius

Constructor Index

 o GaussianFilter()
Construct a Gaussian filter
 o GaussianFilter(int)
Construct a Gaussian filter

Method Index

 o getRadius()
Get the radius of the kernel.
 o makeKernel(int)
 o setRadius(int)
Set the radius of the kernel, and hence the amount of blur.
 o toString()

Variables

 o radius
 protected int radius

Constructors

 o GaussianFilter
 public GaussianFilter()
Construct a Gaussian filter

 o GaussianFilter
 public GaussianFilter(int radius)
Construct a Gaussian filter

Parameters:
radius - blur radius in pixels

Methods

 o 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.
 o getRadius
 public int getRadius()
Get the radius of the kernel.

Returns:
the radius
 o makeKernel
 public static com.jhlabs.image.Kernel makeKernel(int radius)
 o toString
 public java.lang.String toString()
Overrides:
toString in class com.jhlabs.image.ConvolveFilter

All Packages  Class Hierarchy  This Package  Previous  Next  Index