Exercise 3

Load a depth map and transform it in a gray level image.

  1. Download the file depth_map.mat and save it in the working directory.
  2. Compute the trasformation for mapping the values of the matrix in a suitable interval (e.g., [0 255]).
  3. Apply the transformation.
  4. Display the data as a gray levels image.
  5. Save the image on a file.

A possible solution.