Package com.jhlabs.image
Class UnsharpFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.ConvolveFilter
-
- com.jhlabs.image.GaussianFilter
-
- com.jhlabs.image.UnsharpFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class UnsharpFilter extends GaussianFilter
A filter which subtracts Gaussian blur from an image, sharpening it.
-
-
Field Summary
-
Fields inherited from class com.jhlabs.image.GaussianFilter
kernel, radius
-
Fields inherited from class com.jhlabs.image.ConvolveFilter
alpha, CLAMP_EDGES, WRAP_EDGES, ZERO_EDGES
-
-
Constructor Summary
Constructors Constructor Description UnsharpFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)floatgetAmount()intgetThreshold()voidsetAmount(float amount)voidsetThreshold(int threshold)java.lang.StringtoString()-
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
clone, getRGB, setRGB
-
-
-
-
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:
filterin interfacejava.awt.image.BufferedImageOp- Overrides:
filterin classGaussianFilter
-
toString
public java.lang.String toString()
- Overrides:
toStringin classGaussianFilter
-
-