thiagortk / Stereo-Vision

C++ example codes for camera calibration, rectification and to build disparity maps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stereo Vision

C++ example codes for camera calibration, rectification and to build disparity maps

Calibration

Calibration

Rectification

Rectification

Disparity Map

Disparity Map

Infos

Must have OpenCV 3.1 or later installed with extra modules.

The following examples were used:

If you are going to use real-time images and perform your own calibration, use the class: "calibracao.cpp" and then the "disparity.cpp". Build your main to use these classes.

If you are going to use already rectified data set images, you can use "filteredDisparityMap.cpp". The main is inside.

Caution: it has absolute path in the code for the rectified images that should be used for the construction of the Disparity Map. You will need to change the absolute paths or change to use argv.

To compile: g++ filteredDisparityMap.cpp -lopencv_core -lopencv_videoio -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc -lopencv_calib3d -lopencv_features2d -lopencv_ximgproc -o veRun

About

C++ example codes for camera calibration, rectification and to build disparity maps

License:GNU General Public License v3.0


Languages

Language:C++ 100.0%