Class MorphologyOp

java.lang.Object
org.apache.batik.ext.awt.image.rendered.MorphologyOp
All Implemented Interfaces:
BufferedImageOp, RasterOp

public class MorphologyOp extends Object implements BufferedImageOp, RasterOp
This class provides an implementation for the SVG feMorphology filter, as defined in Chapter 15, section 20 of the SVG specification.
Version:
$Id: MorphologyOp.java 1733416 2016-03-03 07:07:13Z gadams $
  • Field Details

    • radiusX

      private int radiusX
      The radius of the operation on X axis
    • radiusY

      private int radiusY
      The radius of the operation on Y axis
    • doDilation

      private boolean doDilation
    • rangeX

      private final int rangeX
    • rangeY

      private final int rangeY
    • sRGB

      private final ColorSpace sRGB
    • lRGB

      private final ColorSpace lRGB
  • Constructor Details

    • MorphologyOp

      public MorphologyOp(int radiusX, int radiusY, boolean doDilation)
      Parameters:
      radiusX - defines the radius of filter operation on X-axis. Should not be negative. A value of zero will disable the effect of the operation on X-axis, as described in the SVG specification.
      radiusY - defines the radius of filter operation on Y-axis. Should not be negative. A value of zero will disable the effect of the operation on Y-axis, as described in the SVG specification.
      doDilation - defines whether to do dilation or erosion operation. Will do dilation when the value is true, erosion when false.
  • Method Details