Class SmartBlurFilter

All Implemented Interfaces:
BufferedImageOp, 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 Details

    • SmartBlurFilter

      public SmartBlurFilter()
  • Method Details

    • filter

      public BufferedImage filter(BufferedImage src, 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
      See Also:
    • getHRadius

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

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

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

      public void setRadius(int radius)
      Set the radius of the effect.
      Parameters:
      radius - the radius
      See Also:
    • getRadius

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

      public String toString()
      Overrides:
      toString in class Object