Package com.jhlabs.image
Class SmartBlurFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- 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
Constructors Constructor Description SmartBlurFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, stringToColor
-
-
-
-
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. The minimum value is 0.- 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. The minimum value is 0.- 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. The minimum value is 0.- 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 classjava.lang.Object
-
-