[Exercises]
[Workspace]
Purpose:
The purpose of this lab is to experiment with overlaying
images. This exercise demonstrates how to generate a grid and overlay
it onto a pixel replicated image to delineate each of pixels in the
original image.
Activities:
-
Building the zoomed image.
-
Select an image to work with. Extract a small region from it,
say 8x8 using the operator Extract and expand it by a factor of 20
using the operator Expand. Display the image.
-
Glyphs:Input/Output:Data Files:User defined
-
Glyphs:Data Manip:Size & Region Operators:Extract
-
Glyphs:Data Manip:Size & Region Operators:Expand
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Building the line-grid image.
-
Use the Piecewise Linear operator to create the line-grid
image with minimum value 0 and maximum value 255. Look at Lab 1 in the
Image Manipulation section, Trapezoidal Data Generation, to find out
the proper parameter to generate this image. Use Period of 20 pixels,
Pulse Width of 1 pixel, Rise and Fall Time of 0 pixels.
-
Glyphs:Khoros 1:Generate Data:Piecewise Linear
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Create and display another similar image, but with horizontal
lines and make a union (maximum) of both using the operator Maximum.
Display the resulting grid image.
-
Glyphs:Arithmetic:Two Operand Arithmetic:Maximum
-
The image created will have zero as the background, and the
lines will have the value of 255. To invert the image, use the
operator Subtract From with parameter 255.
-
Combining the images.
-
Use the operator Minimum to overlay the line-grid image onto
the zoomed image. Display the results.
-
Glyphs:Arithmetic:Two Operand Arithmetic:Minimum
Exercises
-
Overlay the grid onto the image using the Blend Data operator
instead of the Minimum operator.
-
Experiment by changing the pixel values for the line-grid image
and by modifying the magnification factor.
-
Create your own grid image.
Khoros Workspace
Execute the visual program c3s3grid-on-zoom.wk
Main DIP Menu
DIP Feedback Form
Copyright © 1997-1995 KRI, ISTEC, Ramiro Jordán, Roberto Lotufo. All Rights Reserved