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:
BufferedImageOp,Cloneable
A filter which subtracts Gaussian blur from an image, sharpening it.
-
Field Summary
Fields inherited from class com.jhlabs.image.GaussianFilter
kernel, radiusFields inherited from class com.jhlabs.image.ConvolveFilter
alpha, CLAMP_EDGES, premultiplyAlpha, WRAP_EDGES, ZERO_EDGES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter(BufferedImage src, BufferedImage dst) floatGet the amount of sharpening.intGet the threshold value.voidsetAmount(float amount) Set the amount of sharpening.voidsetThreshold(int threshold) Set the threshold value.toString()Methods inherited from class com.jhlabs.image.GaussianFilter
convolveAndTranspose, getRadius, makeKernel, setRadiusMethods inherited from class com.jhlabs.image.ConvolveFilter
convolve, convolve, convolveH, convolveHV, convolveV, createCompatibleDestImage, getBounds2D, getEdgeAction, getKernel, getPoint2D, getPremultiplyAlpha, getRenderingHints, getUseAlpha, setEdgeAction, setKernel, setPremultiplyAlpha, setUseAlphaMethods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, getRGB, setRGB
-
Constructor Details
-
UnsharpFilter
public UnsharpFilter()
-
-
Method Details
-
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:
-
setAmount
public void setAmount(float amount) Set the amount of sharpening.- Parameters:
amount- the amount- See Also:
-
getAmount
public float getAmount()Get the amount of sharpening.- Returns:
- the amount
- See Also:
-
filter
- Specified by:
filterin interfaceBufferedImageOp- Overrides:
filterin classGaussianFilter
-
toString
- Overrides:
toStringin classGaussianFilter
-