<commit_before>Dilate a binary image
=====================

.. index::
  single: BinaryBallStructuringElement
  single: BinaryDilateImageFilter
  pair: mathematical morphology; dilation
  pair: BinaryBallStructuringElement; SetRadius
  seealso: dilation; erosion


Synopsis
--------

Dilate regions by using a specified kernel, also known as a structuring element.
In this example, the white regions are enlarged.


Code
----

C++
...

.. literalinclude:: DilateABinaryImage.cxx


Results
-------

.. figure:: Yinyang.png
  :scale: 50%
  :alt: Input yin-yang image.

  Input binary image.

.. figure:: DilateABinaryImageOutputBaseline.png
  :scale: 50%
  :alt: Dilated output.

  Dilated output.


Classes demonstrated
--------------------

.. doxygenclass:: itk::BinaryDilateImageFilter
  :no-link:

* `BinaryDilateImageFilter detailed doxygen documentation`_

.. doxygenclass:: itk::BinaryBallStructuringElement
  :no-link:

* `BinaryBallStructuringElement detailed doxygen documentation`_
<commit_msg>Results before code in DilateABinaryImage<commit_after>Dilate a binary image
=====================

.. index::
  single: BinaryBallStructuringElement
  single: BinaryDilateImageFilter
  pair: mathematical morphology; dilation
  pair: BinaryBallStructuringElement; SetRadius
  seealso: dilation; erosion


Synopsis
--------

Dilate regions by using a specified kernel, also known as a structuring element.
In this example, the white regions are enlarged.


Results
-------

.. figure:: Yinyang.png
  :scale: 50%
  :alt: Input yin-yang image.

  Input binary image.

.. figure:: DilateABinaryImageOutputBaseline.png
  :scale: 50%
  :alt: Dilated output.

  Dilated output.


Code
----

C++
...

.. literalinclude:: DilateABinaryImage.cxx


Classes demonstrated
--------------------

.. doxygenclass:: itk::BinaryDilateImageFilter
  :no-link:

* `BinaryDilateImageFilter detailed doxygen documentation`_

.. doxygenclass:: itk::BinaryBallStructuringElement
  :no-link:

* `BinaryBallStructuringElement detailed doxygen documentation`_

{'fraction_non_alphanumeric': 0.13555992141453832, 'fraction_numerical': 0.003929273084479371, 'mean_word_length': 3.838479809976247, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3145906', 'n_tokens_mistral': 654, 'n_tokens_neox': 576, 'n_words': 168}