com.jhlabs.image

Class SmartBlurFilter

Implemented Interfaces:
BufferedImageOp, 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.

Method Summary

BufferedImage
filter(BufferedImage src, 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.
String
toString()

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Method Details

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)

getHRadius

public int getHRadius()
Get the horizontal size of the blur.
Returns:
the radius of the blur in the horizontal direction

getRadius

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

getThreshold

public int getThreshold()
Get the threshold value.
Returns:
the threshold value

getVRadius

public int getVRadius()
Get the vertical size of the blur.
Returns:
the radius of the blur in the vertical direction

setHRadius

public void setHRadius(int hRadius)
Set the horizontal size of the blur.
Parameters:
hRadius - the radius of the blur in the horizontal direction

setRadius

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

setThreshold

public void setThreshold(int threshold)
Set the threshold value.
Parameters:
threshold - the threshold value

setVRadius

public void setVRadius(int vRadius)
Set the vertical size of the blur.
Parameters:
vRadius - the radius of the blur in the vertical direction

toString

public String toString()