Exercise 2

Basic operation on images: load an image from file, process and display it.

  1. Download the file depth_im1.png and save it in the working directory.
  2. Load the image in a matrix.
  3. Display the image as a gray levels image.
  4. Display the image as a mesh.
  5. Display the image as a surface.
  6. Display the image as a shaded surface.

A possible solution.