Lab: Patterns

[Exercises] [Workspace]

Purpose: This lab exercise demonstrates methods for creating pattern images using impulse and sinusoid generators.

Activities:

  1. Create a Chess Board Pattern Image

    1. Use the Impulse operator to generate a grid image of size 256x256 with 128 impulses along the width and height dimensions.

      1. Glyphs:Input/Output:Generate Data:Impulse
      2. Set the parameters to:

            Width          = 256    Num. along Width  = 128
            Height         = 256    Num. along Height = 128
            Width Spacing  = 2      Width Offset      = 0
            Height Spacing = 2      Height Offset     = 0

    2. Shift the image one pixel down and one pixel right, using the Translate operator.

      • Glyphs:Data Manip:Reorganize Data:Translate

    3. Perform a union operation with the above images using the Maximum operator.

      • Glyphs:Arithmetic:Two Operand Arithmetic:Maximum

    4. Display an expanded ROI (Region of Interest) of the resultant image. Use the operator Display Zoom Image connected to the output of the MANIMUM glyph.

  2. Generate four Pattern Images from a set of Sinusoid Images.

    1. Generate and display two sinusoidal image patterns, type "float", A and B, of sizes 128x128 and each with 5 cycles. Let pattern A be a wave in the width direction and pattern B in the height direction. Use the Sinusoid operator.

      1. Glyphs:Input/Output:Generate Data:Sinusoid
      2. Glyphs:Visualization:Non-Interactive Display:Display Image

    2. Create and display four different patterns by performing the following operations with the two images: union (maximum), intersection (minimum), multiplication and addition using the operators Maximum, Minimum, Multiply, and Add respectively.

      1. Glyphs:Arithmetic:Two Operand Arithmetic:Maximum
      2. Glyphs:Arithmetic:Two Operand Arithmetic:Minimum
      3. Glyphs:Arithmetic:Two Operand Arithmetic:Multiply
      4. Glyphs:Arithmetic:Two Operand Arithmetic:Add
      5. Glyphs:Visualization:Non-Interactive Display:Display Image


Khoros Workspace
Execute the visual program c3s1gen-patterns.wk



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