com.jhlabs.image
Class SmartBlurFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.SmartBlurFilter
All Implemented Interfaces:
java.awt.image.BufferedImageOp, java.lang.Cloneable

public class SmartBlurFilter
extends AbstractBufferedImageOp

A filter which performs a "smart blur". i.e. a blur which blurs smotth parts of the image while preserving edges.


Constructor Summary
SmartBlurFilter()
           
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 int getHRadius()
          Get the horizontal size of the blur.
 int getRadius()
          Get the radius of the effect.
 int getThreshold()
          Get the threshold value.
 int getVRadius()
          Get the vertical size of the blur.
 void setHRadius(int hRadius)
          Set the horizontal size of the blur.
 void setRadius(int radius)
          Set the radius of the effect.
 void setThreshold(int threshold)
          Set the threshold value.
 void setVRadius(int vRadius)
          Set the vertical size of the blur.
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SmartBlurFilter

public SmartBlurFilter()
Method Detail

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)

setHRadius

public void setHRadius(int hRadius)
Set the horizontal size of the blur.

Parameters:
hRadius - the radius of the blur in the horizontal direction
See Also:
getHRadius()

getHRadius

public int getHRadius()
Get the horizontal size of the blur.

Returns:
the radius of the blur in the horizontal direction
See Also:
setHRadius(int)

setVRadius

public void setVRadius(int vRadius)
Set the vertical size of the blur.

Parameters:
vRadius - the radius of the blur in the vertical direction
See Also:
getVRadius()

getVRadius

public int getVRadius()
Get the vertical size of the blur.

Returns:
the radius of the blur in the vertical direction
See Also:
setVRadius(int)

setRadius

public void setRadius(int radius)
Set the radius of the effect.

Parameters:
radius - the radius
See Also:
getRadius()

getRadius

public int getRadius()
Get the radius of the effect.

Returns:
the radius
See Also:
setRadius(int)

setThreshold

public void setThreshold(int threshold)
Set the threshold value.

Parameters:
threshold - the threshold value
See Also:
getThreshold()

getThreshold

public int getThreshold()
Get the threshold value.

Returns:
the threshold value
See Also:
setThreshold(int)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object