public class GaussianFilter extends ConvolveFilter
| Modifier and Type | Field and Description |
|---|---|
protected Kernel |
kernel |
protected float |
radius |
alpha, CLAMP_EDGES, WRAP_EDGES, ZERO_EDGES| Constructor and Description |
|---|
GaussianFilter()
Construct a Gaussian filter
|
GaussianFilter(float radius)
Construct a Gaussian filter
|
| Modifier and Type | Method and Description |
|---|---|
static void |
convolveAndTranspose(Kernel kernel,
int[] inPixels,
int[] outPixels,
int width,
int height,
boolean alpha,
int edgeAction) |
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
float |
getRadius()
Get the radius of the kernel.
|
static 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.
|
convolve, convolve, convolveH, convolveHV, convolveV, createCompatibleDestImage, getBounds2D, getEdgeAction, getKernel, getPoint2D, getRenderingHints, setEdgeAction, setKernelgetRGB, setRGBprotected float radius
protected Kernel kernel
public GaussianFilter()
public GaussianFilter(float radius)
radius - blur radius in pixelspublic void setRadius(float radius)
radius - the radius of the blur in pixels.public float getRadius()
public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter in interface BufferedImageOpfilter in class ConvolveFilterpublic static void convolveAndTranspose(Kernel kernel, int[] inPixels, int[] outPixels, int width, int height, boolean alpha, int edgeAction)
public static Kernel makeKernel(float radius)
Copyright © 2020. All rights reserved.