Skip to content
This repository was archived by the owner on Jul 21, 2024. It is now read-only.

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

NYU Depth v2 Dataset Images Extractor

Instructions

Two files: sketch.py (run this), and helper.py

  1. Download the NYU Depth V2 labeled '.mat' file and place in this root directory.
  2. Run sketch.py, it will create one dir with two sub dirs of <rgb_image>.jpg and .png

Note

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.

Requirements/Dependencies

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

About

Simple Tool To Extract nyu_depth_v2_labeled.mat

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages