Interface MorphologyRable
- All Superinterfaces:
Filter
,RenderableImage
- All Known Implementing Classes:
MorphologyRable8Bit
Implements a Morphology operation, where the kernel size is
defined by radius along the x and y axis.
-
Field Summary
Fields inherited from interface java.awt.image.renderable.RenderableImage
HINTS_OBSERVED
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the operation is "dilation" or not("erosion")double
Returns the radius along the x-axis, in user space.double
Returns the radius along the y-axis, in user space.Returns the source to be offset.void
setDoDilation
(boolean doDilation) The switch that determines if the operation is to "dilate" or "erode".void
setRadiusX
(double radiusX) The radius along the x axis, in user space.void
setRadiusY
(double radiusY) The radius along the y axis, in user space.void
Sets the source to be offset.Methods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp
Methods inherited from interface java.awt.image.renderable.RenderableImage
createDefaultRendering, createRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic
-
Method Details
-
getSource
Filter getSource()Returns the source to be offset. -
setSource
Sets the source to be offset.- Parameters:
src
- image to offset.
-
setRadiusX
void setRadiusX(double radiusX) The radius along the x axis, in user space.- Parameters:
radiusX
- should be greater than zero.
-
setRadiusY
void setRadiusY(double radiusY) The radius along the y axis, in user space.- Parameters:
radiusY
- should be greater than zero.
-
setDoDilation
void setDoDilation(boolean doDilation) The switch that determines if the operation is to "dilate" or "erode".- Parameters:
doDilation
- do "dilation" when true and "erosion" when false
-
getDoDilation
boolean getDoDilation()Returns whether the operation is "dilation" or not("erosion") -
getRadiusX
double getRadiusX()Returns the radius along the x-axis, in user space. -
getRadiusY
double getRadiusY()Returns the radius along the y-axis, in user space.
-