PDI provides a solution to get the panorama depth image from a single fisheye stereo image pair. A wider view angle always benefits the environmental perception ability. For more information see https://astar.ai.
Youtube Demo Video for the SLAM using PDI.
The following steps have been tested and passed on Ubuntu 16.04.5.
Fisheye Camera Model: C. Mei and P. Rives, Single View Point Omnidirectional Camera Calibration From Planar Grids, ICRA 2007.
Fisheye Stereo Reconstruction: S. Li, Binocular Spherical Stereo, ITS 2009.
- OpenCV: Required at leat 3.0. Tested with OpenCV 3.4.0.
- OpenGL and X11
mkdir build && cd build
cmake ..
make
./pdi
python pdi.py
Python code does not support Operation mode.
The first two trackbars are used to adjust the numDisparities and blockSize for OpenCV stereo matching functions. The third trackbar 'Threshold' is used to adjust the field of view of the camera.
Mouse button: left drag - rotate, middle drag - pan, middle scroll - zoom, right drag - zoom.
PDI uses GLWindow library from http://ethaneade.org/.
Press 'q' or 'Esc' key on the 'Fisheye Image' window to exit.
To run pdi.cpp in a live mode, please change the variable live to true. Python code does NOT support the live mode.
bool live = true;
and run
./pdi YOUR_CALIBRATION_FILE.yml
To run PDI in the LIVE mode, you need to download the calibration parameter file from online. Each CaliCam stereo/mono camera has a UNIQUE parameter file. Please download the corresponding parameter file by following the instructions at https://astar.ai/collections/astar-products.