xiumingzhang / GenRe-ShapeHD

Code and Data Release for GenRe (NeurIPS 2018) and ShapeHD (ECCV 2018)
http://genre.csail.mit.edu/
294 stars 62 forks source link

Script for converting .xml Mitsuba file to .npz numpy camera matrices #66

Closed alexzhou907 closed 4 years ago

alexzhou907 commented 4 years ago

One can run this python script setting the two arguments, one is the data root obtained from downloading and unzipping according to the repo instruction, and the other is root dir containing the .XML files. This script saves camera parameters for all depth images found in data directory. e.g. example_view000_depth.png is matched with example_view000.xml and example_view000_cam_params.npz is saved in the same dir as example_view000_depth.png.

xiumingzhang commented 4 years ago

Thanks for contributing this script!