MATLAB File Help: cv.getStructuringElement Index
cv.getStructuringElement

Returns a structuring element of the specified size and shape for morphological operations

elem = cv.getStructuringElement('OptionName', optionValue, ...)

Output

Options

The function constructs and returns the structuring element that can be further passed to cv.erode, cv.dilate or cv.morphologyEx. But you can also construct an arbitrary binary mask yourself and use it as the structuring element.

See also