Opening by Reconstruction Operator
Building the Cantata Workspace
To build a workspace to experiment with the opening by reconstruction operator:
Select and Display the image
$MMACH/viff/numbers.viff
using the operators
User Defined
and
Display Image
.
Generate a
3x3 Str.El.
Flat Structuring Element like the following:
0 1 0 0 1 0 Structuring element 0 1 0
To build the markers, apply 4 erosions using the
N-Erosion
operator and the previous structuring element.
Generate a
3x3 Str.El.
Flat Structuring Element like the following:
1 1 1 1 1 1 Structuring element used 1 1 1
Apply the
Opening by Reconstr.
operator using as first input
numbers.viff
, as second input the markers and as third input the structuring element.
Visualize the result using the
Display Image
.
Exercises