List of my modules...
Module: Open_Close
Description:
Performs a morphological opening or closing, which is an erosion followed by a dilation, or vice-versa respectively.
The value N is a number of passes as in the Dilate_Erode module. It performs N erosions/dilations with one of the basic structuring elements (the 6-, 18-, or 26-adjacency relation), followed by N dilations/erosions with the same structuring element.
Typical application of the opening and closing operators, on salt and pepper noise. First: original image. Second: the opening, you can say, "flattens out" lower plains. Third: the closing "fills up" ditches.
Connections:
data
[required]
The input image, of type HxUniformScalarField3.
Ports:
Which

Specifies the opening or closing operator.
Connectivity

Choice of the adjacency relation.
Illustration of the different connectivities. (a): 6-, (b): 18-, and (c): 26-connectivity (in case you didn't figure it out, n-connectivity means n pixels in the neighbourhood).
Passes

Specifies the number of consecutive erosions/dilations.
Compute

Push the button to compute.
Commands:
Additional options can be accessed when typing in the console Open COMMAND_NAME. Typing the command again usually reverts back to original settings.
verbose
Displays timing information after the computation. Retype to hide info.
create
Runs the computation. Returns the name of the output, so it can be used in a script, such as set RESULT [Open create].