Package com.jhlabs.image
Class DoGFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.DoGFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
Edge detection by difference of Gaussians.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) boolean
boolean
float
Get the radius of the kernel.float
Get the radius of the kernel.void
setInvert
(boolean invert) void
setNormalize
(boolean normalize) void
setRadius1
(float radius1) Set the radius of the kernel, and hence the amount of blur.void
setRadius2
(float radius2) Set the radius of the kernel, and hence the amount of blur.toString()
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Constructor Details
-
DoGFilter
public DoGFilter()
-
-
Method Details
-
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:
radius
- the radius of the blur in pixels.- See Also:
-
getRadius1
public float getRadius1()Get the radius of the kernel.- Returns:
- the radius
- See Also:
-
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:
radius
- the radius of the blur in pixels.- See Also:
-
getRadius2
public float getRadius2()Get the radius of the kernel.- Returns:
- the radius
- See Also:
-
setNormalize
public void setNormalize(boolean normalize) -
getNormalize
public boolean getNormalize() -
setInvert
public void setInvert(boolean invert) -
getInvert
public boolean getInvert() -
filter
-
toString
-