com.alee.graphics.filters
Class BoxBlurFilter

java.lang.Object
  extended by com.alee.graphics.filters.AbstractBufferedImageOp
      extended by 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.


Constructor Summary
BoxBlurFilter()
           
BoxBlurFilter(int hRadius, int vRadius, int iterations)
           
 
Method Summary
static void blur(int[] in, int[] out, int width, int height, int radius)
           
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 int getHRadius()
           
 int getIterations()
           
 int getRadius()
           
 int getVRadius()
           
 void setHRadius(int hRadius)
           
 void setIterations(int iterations)
           
 void setRadius(int radius)
           
 void setVRadius(int vRadius)
           
 
Methods inherited from class com.alee.graphics.filters.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoxBlurFilter

public BoxBlurFilter()

BoxBlurFilter

public BoxBlurFilter(int hRadius,
                     int vRadius,
                     int iterations)
Method Detail

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)