Class BinaryErosion

java.lang.Object
imagingbook.common.morphology.BinaryMorphologyFilter
imagingbook.common.morphology.BinaryErosion
All Implemented Interfaces:
BinaryMorphologyOperator

Implements a binary morphological erosion operation. See Sec. 7.2.4 of [1] for additional details.

[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).

Version:
2022/09/18
  • Constructor Details

    • BinaryErosion

      public BinaryErosion()
      Constructor, creates a BinaryErosion with a 3x3 box structuring element by default.
    • BinaryErosion

      public BinaryErosion(byte[][] H)
      Constructor, creates a BinaryErosion with the specified structuring element.
      Parameters:
      H - the structuring element
  • Method Details

    • applyTo

      public void applyTo(ByteProcessor bp)
      Description copied from interface: BinaryMorphologyOperator
      Applies this morphological operator to the specified image (destructively, that is, the image is modified).
      Parameters:
      bp - the image the operator is applied to