Lab: Translation, Rotation, Scaling / Geometric Transformations I

[Exercises] [Workspace]

Purpose: The purpose of this experiment is to visualize the effects on an object when we perform translation, rotation, and scaling operations.

Activities:

  1. Perform geometric rotation, scaling, and translation on the image the image $DIP/data/drawing.kdf.

    1. Display $DIP/data/drawing.kdf and get size information about the data object using the following operators and expand the image with Expand operators:

      1. Glyphs:Input/Output:Data Files:User defined
      2. Glyphs:Visualization:Non-Interactive Display:Display Image
      3. Glyphs:Input/Output:Information:Data Object Info
      4. Glyphs:Input/Output:Information:File Viewer
      5. Glyphs:Data Manip:Size & Region Operators:Expand

    2. Rotate the original object by 45 degrees. Use the following operator:

      1. Glyphs:Image Proc:Geometric Operators:Rotate
      2. Display the results

    3. Geometrically scale the object by a factor of three. Consider the origin as the center of the image. The operator to use is:

      1. Glyphs:Data Manip:Size & Region Operators:Resample
      2. When using the Resample operator, if you wish to keep the output image the same size as the input image, set the "Resize dimensions?" parameter to "No".
      3. Display the results.

    4. Translate the object by an offset of 32 in both the width and height dimensions using the Translate operator.

      1. Glyphs:Data Manip:Reorganize Data:Translate
      2. Display the results

    5. Do a periodic translation of the object by an offset of 32 in the width and height dimensions. Use a duplicate copy of the same Translate operator but set the option to "Fill outside data by wrapping". Display the results.


Exercises

  1. Perform the same experiment with different objects. Experiment by modifying the width and/or height of your objects.
  2. Create an workspace to create the periodic translation based on the non-period tranlation operator.


Khoros Workspace
Execute the visual program c2s9geo-transformations.wk



Main DIP Menu
DIP Feedback Form
Copyright © 1997-1995 KRI, ISTEC, Ramiro Jordán, Roberto Lotufo. All Rights Reserved