com.jhlabs.image
Class UnsharpFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.ConvolveFilter
          extended by com.jhlabs.image.GaussianFilter
              extended by com.jhlabs.image.UnsharpFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable

public class UnsharpFilter
extends GaussianFilter

A filter which subtracts Gaussian blur from an image, sharpening it.

Author:
Jerry Huxtable

Field Summary
 
Fields inherited from class com.jhlabs.image.ConvolveFilter
CLAMP_EDGES, WRAP_EDGES, ZERO_EDGES
 
Constructor Summary
UnsharpFilter()
           
 
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 setThreshold(int threshold)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.GaussianFilter
convolveAndTranspose, getRadius, makeKernel, setRadius
 
Methods inherited from class com.jhlabs.image.ConvolveFilter
convolve, convolve, convolveH, convolveHV, convolveV, createCompatibleDestImage, getBounds2D, getEdgeAction, getKernel, getPoint2D, getRenderingHints, getUseAlpha, setEdgeAction, setKernel, setUseAlpha
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
getRGB, process, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsharpFilter

public UnsharpFilter()
Method Detail

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:
filter in interface java.awt.image.BufferedImageOp
Overrides:
filter in class GaussianFilter

toString

public java.lang.String toString()
Overrides:
toString in class GaussianFilter