Package com.jhlabs.image
Class SmartBlurFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.SmartBlurFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
A filter which performs a "smart blur". i.e. a blur which blurs smotth parts of the image while preserving edges.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) int
Get the horizontal size of the blur.int
Get the radius of the effect.int
Get the threshold value.int
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.toString()
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Constructor Details
-
SmartBlurFilter
public SmartBlurFilter()
-
-
Method Details
-
filter
-
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
public int getHRadius()Get the horizontal size of the blur.- Returns:
- the radius of the blur in the horizontal direction
- See Also:
-
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
public int getVRadius()Get the vertical size of the blur.- Returns:
- the radius of the blur in the vertical direction
- See Also:
-
setRadius
public void setRadius(int radius) Set the radius of the effect.- Parameters:
radius
- the radius- See Also:
-
getRadius
public int getRadius()Get the radius of the effect.- Returns:
- the radius
- See Also:
-
setThreshold
public void setThreshold(int threshold) Set the threshold value.- Parameters:
threshold
- the threshold value- See Also:
-
getThreshold
public int getThreshold()Get the threshold value.- Returns:
- the threshold value
- See Also:
-
toString
-