Performs advanced morphological transformations.

C# | Visual Basic | Visual C++ |

- src (IntPtr)
- Source image.
- dst (IntPtr)
- Destination image.
- temp (IntPtr)
- Temporary image, required in some cases. The temporary image temp is required for morphological gradient and, in case of in-place operation, for "top hat" and "black hat".
- element (IntPtr)
- Structuring element.
- operation (CV_MORPH_OP)
- Type of morphological operation.
- iterations (Int32)
- Number of times erosion and dilation are applied.