|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jhlabs.image.AbstractBufferedImageOp com.jhlabs.image.ConvolveFilter com.jhlabs.image.GaussianFilter
public class GaussianFilter
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.
Field Summary |
---|
Fields inherited from class com.jhlabs.image.ConvolveFilter |
---|
CLAMP_EDGES, WRAP_EDGES, ZERO_EDGES |
Constructor Summary | |
---|---|
GaussianFilter()
Construct a Gaussian filter. |
|
GaussianFilter(float radius)
Construct a Gaussian filter. |
Method Summary | |
---|---|
static void |
convolveAndTranspose(java.awt.image.Kernel kernel,
int[] inPixels,
int[] outPixels,
int width,
int height,
boolean alpha,
int edgeAction)
|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
|
float |
getRadius()
Get the radius of the kernel. |
static java.awt.image.Kernel |
makeKernel(float radius)
Make a Gaussian blur kernel. |
void |
setRadius(float radius)
Set the radius of the kernel, and hence the amount of blur. |
java.lang.String |
toString()
|
Methods inherited from class com.jhlabs.image.ConvolveFilter |
---|
convolve, convolve, convolveH, convolveHV, convolveV, createCompatibleDestImage, getBounds2D, getEdgeAction, getKernel, getPoint2D, getRenderingHints, hasAlpha, setEdgeAction, setKernel |
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp |
---|
getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GaussianFilter()
public GaussianFilter(float radius)
radius
- blur radius in pixelsMethod Detail |
---|
public void setRadius(float radius)
radius
- the radius of the blur in pixels.public float getRadius()
public static void convolveAndTranspose(java.awt.image.Kernel kernel, int[] inPixels, int[] outPixels, int width, int height, boolean alpha, int edgeAction)
public static java.awt.image.Kernel makeKernel(float radius)
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
filter
in interface java.awt.image.BufferedImageOp
filter
in class ConvolveFilter
public java.lang.String toString()
toString
in class ConvolveFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |