Image Display/Data Type Conversion
Building the Cantata Workspace
Generate a synthetic sine wave in the horizontal direction of dimensions
128 x 128, amplitude 2.0, and data type "float". Use the
Sinusoidal operator. Display this sine wave image with
Putimage.
Use the operator
Convert Type followed by the
Putimage operator to perform the following experiments:
- output type = Bit
- output type = Byte
- output type = Byte, Scaling Factor of 255/4
- output type = Unsigned Byte
- output type = Unsigned Byte, Scaling Factor of 255/4, Offset Value of 128
- output type = Complex
Exercises
- Repeat the same experiments using the types Short, Unsigned Short,
Integer and Unsigned Integer.
- Convert a floating point image in VIFF format into a
GIF image format with unsigned byte pixels (0 to 255).
Implement two solutions. The first using the operator
Convert Type and the other using the operator
Normalize.
DIP Feedback Form