Class BinaryClosing

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

Implements a binary morphological closing operation. See Sec. 7.3.2 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

    • BinaryClosing

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

      public BinaryClosing(byte[][] H)
      Constructor, creates a BinaryClosing 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