Package com.jhlabs.image
Class DoGFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.DoGFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class DoGFilter extends AbstractBufferedImageOp
Edge detection by difference of Gaussians.- Author:
- Jerry Huxtable
-
-
Constructor Summary
Constructors Constructor Description DoGFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)booleangetInvert()booleangetNormalize()floatgetRadius1()Get the radius of the kernel.floatgetRadius2()Get the radius of the kernel.voidsetInvert(boolean invert)voidsetNormalize(boolean normalize)voidsetRadius1(float radius1)Set the radius of the kernel, and hence the amount of blur.voidsetRadius2(float radius2)Set the radius of the kernel, and hence the amount of blur.java.lang.StringtoString()-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
Method Detail
-
setRadius1
public void setRadius1(float radius1)
Set the radius of the kernel, and hence the amount of blur. The bigger the radius, the longer this filter will take.- Parameters:
radius1- the radius of the blur in pixels, min-value 0, max-value 100+- See Also:
getRadius1()
-
getRadius1
public float getRadius1()
Get the radius of the kernel.- Returns:
- the radius
- See Also:
setRadius1(float)
-
setRadius2
public void setRadius2(float radius2)
Set the radius of the kernel, and hence the amount of blur. The bigger the radius, the longer this filter will take.- Parameters:
radius2- the radius of the blur in pixels, min-value 0, max-value 100+.- See Also:
getRadius2()
-
getRadius2
public float getRadius2()
Get the radius of the kernel.- Returns:
- the radius
- See Also:
setRadius2(float)
-
setNormalize
public void setNormalize(boolean normalize)
-
getNormalize
public boolean getNormalize()
-
setInvert
public void setInvert(boolean invert)
-
getInvert
public boolean getInvert()
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-