Class SmartBlurFilter

  • All Implemented Interfaces:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class SmartBlurFilter
    extends AbstractBufferedImageOp
    A filter which performs a "smart blur". i.e. a blur which blurs smotth parts of the image while preserving edges.
    • Constructor Detail

      • SmartBlurFilter

        public SmartBlurFilter()
    • Method Detail

      • filter

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
      • setHRadius

        public void setHRadius​(int hRadius)
        Set the horizontal size of the blur.
        Parameters:
        hRadius - the radius of the blur in the horizontal direction. The minimum value is 0.
        See Also:
        getHRadius()
      • getHRadius

        public int getHRadius()
        Get the horizontal size of the blur.
        Returns:
        the radius of the blur in the horizontal direction
        See Also:
        setHRadius(int)
      • setVRadius

        public void setVRadius​(int vRadius)
        Set the vertical size of the blur.
        Parameters:
        vRadius - the radius of the blur in the vertical direction. The minimum value is 0.
        See Also:
        getVRadius()
      • getVRadius

        public int getVRadius()
        Get the vertical size of the blur.
        Returns:
        the radius of the blur in the vertical direction
        See Also:
        setVRadius(int)
      • setRadius

        public void setRadius​(int radius)
        Set the radius of the effect.
        Parameters:
        radius - the radius. The minimum value is 0.
        See Also:
        getRadius()
      • getRadius

        public int getRadius()
        Get the radius of the effect.
        Returns:
        the radius
        See Also:
        setRadius(int)
      • 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)
      • toString

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