cv.morphologyEx - MATLAB File Help
cv.morphologyEx

Performs advanced morphological transformations

dst = cv.morphologyEx(src, op)
dst = cv.morphologyEx(src, op, 'OptionName',optionValue, ...)

Input

Output

Options

The function cv.morphologyEx can perform advanced morphological transformations using an erosion and dilation as basic operations.

In case of multi-channel images, each channel is processed independently.

Note: The number of iterations is the number of times erosion or dilatation operation will be applied. For instance, an opening operation (Open) with two iterations is equivalent to apply successively: erode -> erode -> dilate -> dilate (and not erode -> dilate -> erode -> dilate).

See also