Closing by Reconstruction Operator

Building the Workspace in Cantata


To build a workspace to experiment with the closing by reconstruction operator:
  1. Choose Gaussian Noise from Generate Noise in option Input/Output. Use Width = 20, Height = 1, Mean = 50 and Variance = 20.

  2. Apply the morphological Add (mmach) to add a constant 6 of the generated noise.

  3. Generate a 3x3 Str.El. Flat Structuring Element like the following:
               0 0 0
               1 1 1  Structuring element used
               0 0 0
    

  4. Apply the closing by Reconstr. operator using as first input the generated noise, as second input the result of the subtraction and as third input the structuring element.

  5. Visualize the result using the Plot Display 2D in Visualization.

Exercises

  1. Implement an operator that extracts the holes in the form of ones and fours from the negation of the image $MMACH/viff/numbers.viff.

  2. Implement an operator that extracts the hole with the form of the letter M from the negation of the image $MMACH/viff/M.xv

  3. Implement an operator that extracts from the negation of the image $MMACH/viff/blobs2.xv the holes that do not desappear after a dilation by an Euclidian disk of size 10.

  4. Repeat the same exercise using as input the negation of the signal $MMACH/viff/signal1.xv. Use as structural elements for the dilation flat and non flat structural elements. What are the differences in both cases?

  5. Implement an workspace that presents as colored slide the granulommetric disbutions of the holes in the negation of the image $MMACH/viff/blobs2.xv. Use as structural elements Euclidian disks of increasing size.

  6. Inplement an operator that performs the elimination of objects cointed into holes, without changing the contours of the holes. Use as input the negation of the image $MMACH/viff/closeholes.xv . See page close holes .

  7. Inplement an operator that performs the elimination of the holes that are adjacent to the frame. Use as input the negation of the image $MMACH/viff/blobs2.xv. See page objects in the frame off .

  8. Build the following workspace:

  9. What could you extract from the image $MMACH/viff/keyb.xv using the operator described in the last exercise? Adjust the parameters to extract these geometrical structures.