/pdi

PDI: Panorama Depth Image

Primary LanguageC++

PDI: Panorama Depth Image

PDI provides a solution to get the panorama depth image from a single fisheye stereo image pair. For more information see https://astar.ai.

The following steps have been tested and passed on Ubuntu 16.04.5.

1. OpenCV Installation

Follow the steps in CaliCam@GitHub.

2. Compile

git clone https://github.com/astar-ai/pdi.git
cd pdi
chmod 777 ./compile.sh
./compile.sh

3. Run

./pdi

4. Operation

4.1 'Fisheye Image' window

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.

4.2 'Panorama 3D Scene' OpenGL window

Mouse button: left drag - rotate, middle drag - pan, middle scroll - zoom, right drag - zoom.

PDI uses GLWindow library from http://ethaneade.org/.

4.3 Exit

Press 'q' or 'Esc' key on the 'Fisheye Image' window to exit.

5. Live Mode

To run CaliCam in a live mode, please change the variable live to true:

bool      live = true;

and run

./pdi YOUR_CALIBRATION_FILE.yml

6. Calibration Parameter File

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.