Patterns
Building the Cantata Workspace
Chess Board Pattern
A method to create an image of a chessboard pattern is described below
- Use the
Impulse operator
to generate a grid image of size 256x256 with 128 impulses along the
width and height dimensions.
- Shift the image one pixel down and one pixel right, using the
Translate operator.
- Perform a union operation with the above images using the
Maximum operator.
- Display with zoom a ROI (Region of Interest) of the resultant image,
use the operators
Extract,
Expand and
Display Image.
Sinusoidal Patterns
- Generate 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
Sinusoidal operator.
- Create 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.
Exercises
rjordan@khoros.unm.edu, lotufo@khoros.unm.edu