public class SmartBlurFilter extends AbstractBufferedImageOp
Modifier and Type | Field and Description |
---|---|
private int |
hRadius |
private int |
threshold |
private int |
vRadius |
Constructor and Description |
---|
SmartBlurFilter() |
Modifier and Type | Method and Description |
---|---|
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.
|
private void |
thresholdBlur(Kernel kernel,
int[] inPixels,
int[] outPixels,
int width,
int height,
boolean alpha)
Convolve with a kernel consisting of one row
|
String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private int hRadius
private int vRadius
private int threshold
public SmartBlurFilter()
public BufferedImage filter(BufferedImage src, BufferedImage dst)
private void thresholdBlur(Kernel kernel, int[] inPixels, int[] outPixels, int width, int height, boolean alpha)
public void setHRadius(int hRadius)
hRadius
- the radius of the blur in the horizontal directiongetHRadius()
public int getHRadius()
setHRadius(int)
public void setVRadius(int vRadius)
vRadius
- the radius of the blur in the vertical directiongetVRadius()
public int getVRadius()
setVRadius(int)
public void setRadius(int radius)
radius
- the radiusgetRadius()
public int getRadius()
setRadius(int)
public void setThreshold(int threshold)
threshold
- the threshold valuegetThreshold()
public int getThreshold()
setThreshold(int)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses