Perform advanced morphological transformations using erosion and dilation as basic operations.

C# | Visual Basic | Visual C++ |
public Image<TColor, TDepth> MorphologyEx( StructuringElementEx element, CV_MORPH_OP operation, int iterations )
Public Function MorphologyEx ( _ element As StructuringElementEx, _ operation As CV_MORPH_OP, _ iterations As Integer _ ) As Image(Of TColor, TDepth)
public: Image<TColor, TDepth>^ MorphologyEx( StructuringElementEx^ element, CV_MORPH_OP operation, int iterations )

- element (StructuringElementEx)
- Structuring element
- operation (CV_MORPH_OP)
- Type of morphological operation
- iterations (Int32)
- Number of times erosion and dilation are applied

The result of the morphological operation