Python tool that maps images taken from multiple cameras onto an egocentric sphere seen from the origin, with an extra data point per pixel (eg: semantics).
Adapted in part from Magnus Gaertner's Master's Thesis (ETH Zurich).
-
Projects 3D points to cube, warps cube face pixels to "quad sphere".
-
De-dupes points by choosing min-depth point per pixel in output sphere.
git clone https://github.com/Kappibw/sphere_cam.git
cd sphere_cam
conda env create -f environment.yml
conda activate spherecam
pip install -e .
python -c "import sphere_cam"
To run on a single test image:
python test_single_image.py
To run with 4 images (front, back, left, right):
python test_omnidirectional_images.py
Note: this codebase assumes that input depth images are in default camera coordinates: y down, z forwards, and that world coordinates are x forward, z up.