Image Overlaying II

Building the Cantata Workspace


  1. Build the zoomed image.
    1. Use two Piecewise Linear operators to generate images of size 9x9 with pixel values ranging from 0 to 1 and the following parameters:
      Period:     9
      Rise Time:  4 
      Fall Time:  4
      Pulse Width:0
      
      Have one image generate a pattern in the width direction and the other in the height direction.
    2. Multiply both images using the Multiply operator.
    3. Normalize the image from 0 to 255.
    4. Expand it by a factor of 18 in the width dimension and 13 in the height dimension. These factors were chosen in order for this image to exactly match with the numbers in the image file (numbers.viff)
    5. Display the image.
  2. Select and display the $DIP/data/numbers.viff image. Use operators User defined and Display Image. Verify if the pixel data type of the image is bit. If that is the case, it is necessary to convert to unsigned byte and normalize it to 255 using the Normalize operator.
  3. Apply the operator Maximum to both images.
  4. Apply the operator Xor to both images.
  5. Add the constant 128 to the zoomed image. Note that there is overflow in this operation. In this case the overflow effect is desired. Combine the zoomed image and this last one using the Gate Data operator, with the numbers.viff image acting as the gating operator.

Exercises


DIP Feedback Form

Copyright © 1995 KRI, ISTEC, Ramiro Jordán, Roberto Lotufo. All Rights Reserved.