Two files: sketch.py (run this), and helper.py
- Download the NYU Depth V2 labeled '.mat' file and place in this root directory.
- Run sketch.py, it will create one dir with two sub dirs of <rgb_image>.jpg and .png
RGB Images are 'as-is' from the dataset, but the Depth images are 'normalized' by factor of 4. This is because Depth maps drawn from Kinect have pixel values 0-4, 4 representing maximum distance in meters. You can turn off normalization in helper.py, but keep in mind, the images may look black.
Some scipy.misc functions are DEPRECATED. So install an older version to get around this.
pip install scipy==1.0.0
from tqdm import tqdm # For progressbar ;)
import h5py # For .mat files
import helper # Accompanying file in root directory
import scipy.misc # For saving images