Below we provide some instructions on loading the data. If you need more help, emails us at email@example.com.
The images are stored in the standard
.ppm format and can be opened by most image libraries.
In RelocDB, the depth data is stored in the
.exr format. We provide sample code to load the depth data in C++ and Python.
The C++ loader of
.exr files depends on the opencv library which can be installed using:
$ sudo apt-get install libopencv-dev $ sudo apt-get install cmake $ cd ./tutorials/cpp $ mkdir build $ cd build && cmake .. && make -j4 $ ./exr
The C++ code depends on OpenCV.
The sample code for Python can be ran using:
$ sudo apt install openexr libopenexr-dev $ pip install OpenEXR $ python rgbd_display
The python code depends on Open3D and opencv-python.
Poses and Timestamps
We follow the TUM format for pose and timestamp representation.
Each line in the text file caputures one pose and corresponding timestamp, and is in the format
timestamp tx ty tz qx qy qz qw, with:
timestampcapturing the number of seconds since the Unix epoch;
tx ty tzcapturing the translation of the camera center wrt the world origin;
qx qy qz qwcapturing the quaternion describing the rotation of the camera center wrt the world origin.