Class LensBlurFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class LensBlurFilter extends AbstractBufferedImageOp
A filter which use FFTs to simulate lens blur on an image.
  • Constructor Details

    • LensBlurFilter

      public LensBlurFilter()
  • Method Details

    • setRadius

      public void setRadius(float radius)
      Set the radius of the kernel, and hence the amount of blur.
      Parameters:
      radius - the radius of the blur in pixels.
      See Also:
    • getRadius

      public float getRadius()
      Get the radius of the kernel.
      Returns:
      the radius
      See Also:
    • setSides

      public void setSides(int sides)
      Set the number of sides of the aperture.
      Parameters:
      sides - the number of sides
      See Also:
    • getSides

      public int getSides()
      Get the number of sides of the aperture.
      Returns:
      the number of sides
      See Also:
    • setBloom

      public void setBloom(float bloom)
      Set the bloom factor.
      Parameters:
      bloom - the bloom factor
      See Also:
    • getBloom

      public float getBloom()
      Get the bloom factor.
      Returns:
      the bloom factor
      See Also:
    • setBloomThreshold

      public void setBloomThreshold(float bloomThreshold)
      Set the bloom threshold.
      Parameters:
      bloomThreshold - the bloom threshold
      See Also:
    • getBloomThreshold

      public float getBloomThreshold()
      Get the bloom threshold.
      Returns:
      the bloom threshold
      See Also:
    • filter

      public BufferedImage filter(BufferedImage src, BufferedImage dst)
    • toString

      public String toString()
      Overrides:
      toString in class Object