Class 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.
    Author:
    Jerry Huxtable
    • Constructor Detail

      • UnsharpFilter

        public UnsharpFilter()
    • Method Detail

      • setThreshold

        public void setThreshold​(int threshold)
        Set the threshold value.
        Parameters:
        threshold - the threshold value
        See Also:
        getThreshold()
      • getThreshold

        public int getThreshold()
        Get the threshold value.
        Returns:
        the threshold value
        See Also:
        setThreshold(int)
      • setAmount

        public void setAmount​(float amount)
        Set the amount of sharpening.
        Parameters:
        amount - the amount. Minimum value: 0, maximum value: 1
        See Also:
        getAmount()
      • getAmount

        public float getAmount()
        Get the amount of sharpening.
        Returns:
        the amount
        See Also:
        setAmount(float)
      • 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