RGB Model

Building the Cantata Workspace


  1. Read the image $DIP/data/istec-map-color.viff and display it using operators User defined and Display Image.
  2. Read the header information of the color image and verify that it has three elements and RGB as its color model. Use operators Data Object Info and File Viewer
  3. Extract the red band (element 0) of the color image by using the operator Extract. Remember that you don't need to specify any width or height dimensions as you are only extracting in the elements dimension. Display this image. It is a grey-level image showing the intensity of the red component of the RGB image.
  4. To display this image as shades of red you need to create an RGB image (3 elements) with elements 1 (Green) and 2 (Blue) with value zero. Use the operator Pad.
  5. Repeat the same for the green and blue components.
  6. Use the operator Add to add different color bands.

Exercises


DIP Feedback Form

Copyright © 1995 KRI, ISTEC, Ramiro Jordán, Roberto Lotufo. All Rights Reserved.