com.alee.graphics.filters
Class BoxBlurFilter
java.lang.Object
com.alee.graphics.filters.AbstractBufferedImageOp
com.alee.graphics.filters.BoxBlurFilter
- All Implemented Interfaces:
- java.awt.image.BufferedImageOp
public class BoxBlurFilter
- extends AbstractBufferedImageOp
A filter which performs a box blur on an image. The horizontal and vertical blurs can be specified separately and a number of iterations
can be given which allows an approximation to Gaussian blur.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoxBlurFilter
public BoxBlurFilter()
BoxBlurFilter
public BoxBlurFilter(int hRadius,
int vRadius,
int iterations)
setHRadius
public void setHRadius(int hRadius)
getHRadius
public int getHRadius()
setVRadius
public void setVRadius(int vRadius)
getVRadius
public int getVRadius()
setRadius
public void setRadius(int radius)
getRadius
public int getRadius()
setIterations
public void setIterations(int iterations)
getIterations
public int getIterations()
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
blur
public static void blur(int[] in,
int[] out,
int width,
int height,
int radius)