.. _net.fxarena.openfx.Morphology:

Morphology node
===============

.. raw:: html

   <!-- Do not edit this file! It is generated automatically by Natron itself. -->

|pluginIcon| 

*This documentation is for version 1.0 of Morphology (net.fxarena.openfx.Morphology).*

Description
-----------

Morphology modifies an image in various ways based on the nearby neighbourhood of the other pixels that surround it. This in turn can provide a huge range of effects, Shape expansion and contraction (dilate/erode), to distance from edge, to thining down to a skeleton, or mid-line axis. For more information read https://imagemagick.org/Usage/morphology/#basic

Inputs
------

+--------+-------------+----------+
| Input  | Description | Optional |
+========+=============+==========+
| Source |             | No       |
+--------+-------------+----------+
| Mask   |             | Yes      |
+--------+-------------+----------+

Controls
--------

.. tabularcolumns:: |>{\raggedright}p{0.2\columnwidth}|>{\raggedright}p{0.06\columnwidth}|>{\raggedright}p{0.07\columnwidth}|p{0.63\columnwidth}|

.. cssclass:: longtable

+-----------------------------+---------+-------------+-------------------------------------------------------------------------------------------------------+
| Parameter / script name     | Type    | Default     | Function                                                                                              |
+=============================+=========+=============+=======================================================================================================+
| OpenMP / ``openmp``         | Boolean | Off         | Enable/Disable OpenMP support. This will enable the plugin to use as many threads as allowed by host. |
+-----------------------------+---------+-------------+-------------------------------------------------------------------------------------------------------+
| Matte / ``matte``           | Boolean | Off         | Merge Alpha before applying effect.                                                                   |
+-----------------------------+---------+-------------+-------------------------------------------------------------------------------------------------------+
| Virtual Pixel / ``vpixel``  | Choice  | Transparent | | Virtual Pixel Method.                                                                               |
|                             |         |             | | **Undefined**                                                                                       |
|                             |         |             | | **Background**                                                                                      |
|                             |         |             | | **Black**                                                                                           |
|                             |         |             | | **CheckerTile**                                                                                     |
|                             |         |             | | **Dither**                                                                                          |
|                             |         |             | | **Edge**                                                                                            |
|                             |         |             | | **Gray**                                                                                            |
|                             |         |             | | **HorizontalTile**                                                                                  |
|                             |         |             | | **HorizontalTileEdge**                                                                              |
|                             |         |             | | **Mirror**                                                                                          |
|                             |         |             | | **Random**                                                                                          |
|                             |         |             | | **Tile**                                                                                            |
|                             |         |             | | **Transparent**                                                                                     |
|                             |         |             | | **VerticalTile**                                                                                    |
|                             |         |             | | **VerticalTileEdge**                                                                                |
|                             |         |             | | **White**                                                                                           |
+-----------------------------+---------+-------------+-------------------------------------------------------------------------------------------------------+
| Iterations / ``iterations`` | Integer | 1           | Iterations used                                                                                       |
+-----------------------------+---------+-------------+-------------------------------------------------------------------------------------------------------+
| Method / ``method``         | Choice  | Dilate      | | Method used for Morphology. https://imagemagick.org/Usage/morphology/#basic                         |
|                             |         |             | | **Convolve**                                                                                        |
|                             |         |             | | **Correlate**                                                                                       |
|                             |         |             | | **Erode**                                                                                           |
|                             |         |             | | **Dilate**                                                                                          |
|                             |         |             | | **ErodeIntensity**                                                                                  |
|                             |         |             | | **DilateIntensity**                                                                                 |
|                             |         |             | | **Distance**                                                                                        |
|                             |         |             | | **Open**                                                                                            |
|                             |         |             | | **Close**                                                                                           |
|                             |         |             | | **OpenIntensity**                                                                                   |
|                             |         |             | | **CloseIntensity**                                                                                  |
|                             |         |             | | **Smooth**                                                                                          |
|                             |         |             | | **EdgeIn**                                                                                          |
|                             |         |             | | **EdgeOut**                                                                                         |
|                             |         |             | | **Edge**                                                                                            |
|                             |         |             | | **TopHat**                                                                                          |
|                             |         |             | | **BottomHat**                                                                                       |
|                             |         |             | | **HitAndMiss**                                                                                      |
|                             |         |             | | **Thinning**                                                                                        |
|                             |         |             | | **Thicken**                                                                                         |
|                             |         |             | | **Voronoi**                                                                                         |
|                             |         |             | | **IterativeDistance**                                                                               |
+-----------------------------+---------+-------------+-------------------------------------------------------------------------------------------------------+
| kernel / ``kernel``         | String  | Octagon:3   | Kernel used for Morphology. https://imagemagick.org/Usage/morphology/#basic                           |
+-----------------------------+---------+-------------+-------------------------------------------------------------------------------------------------------+

.. |pluginIcon| image:: net.fxarena.openfx.Morphology.png
   :width: 10.0%
