j2d.filters
Class UnsharpFilter
java.lang.Object
   j2d.filters.AbstractBufferedImageOp
j2d.filters.AbstractBufferedImageOp
       j2d.filters.ConvolveFilter
j2d.filters.ConvolveFilter
           j2d.filters.GaussianFilter
j2d.filters.GaussianFilter
               j2d.filters.UnsharpFilter
j2d.filters.UnsharpFilter
- All Implemented Interfaces: 
- ImageProcessorInterface, java.awt.image.BufferedImageOp, java.io.Serializable, java.lang.Cloneable
- public class UnsharpFilter 
- extends GaussianFilter
A filter which subtracts Gaussian blur from an image, sharpening it.
- Author:
- Jerry Huxtable
- See Also:
- Serialized Form
 
 
 
| Method Summary | 
|  java.awt.image.BufferedImage | filter(java.awt.image.BufferedImage src,
       java.awt.image.BufferedImage dst)
 | 
|  float | getAmount()
 | 
|  int | getThreshold()
 | 
|  void | setAmount(float amount)
 | 
|  void | setRadius(float radius)Set the radius of the kernel, and hence the amount of blur.
 | 
|  void | setThreshold(int threshold)
 | 
|  java.lang.String | toString()
 | 
 
 
| Methods inherited from class j2d.filters.ConvolveFilter | 
| convolve, convolve, convolveH, convolveHV, convolveV, createCompatibleDestImage, getBounds2D, getEdgeAction, getKernel, getPoint2D, getRenderingHints, getUseAlpha, setEdgeAction, setKernel, setUseAlpha | 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
UnsharpFilter
public UnsharpFilter()
setRadius
public void setRadius(float radius)
- Description copied from class: GaussianFilter
- Set the radius of the kernel, and hence the amount of blur. The bigger the radius, the longer this filter will take.
 
- 
- Overrides:
- setRadiusin class- GaussianFilter
 
- 
- Parameters:
- radius- the radius of the blur in pixels.
 
setThreshold
public void setThreshold(int threshold)
- 
 
getThreshold
public int getThreshold()
- 
 
setAmount
public void setAmount(float amount)
- 
 
getAmount
public float getAmount()
- 
 
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)
- 
- Specified by:
- filterin interface- java.awt.image.BufferedImageOp
- Overrides:
- filterin class- GaussianFilter
 
- 
 
toString
public java.lang.String toString()
- 
- Overrides:
- toStringin class- GaussianFilter
 
-