To be added
OpenCV Version: 4.5.4
PCL Version: 1.7.3 (pcl_ros)
g++ Version: 9.3.0
Note:
Use pkg-config --modversion PKGNAME to check versions
Use pkg-config --list-all | grep PKGNAME to see if your library was correctly installed, or might have to add additional PKG_CONFIG_PATH to .bashrc in the following manner:
1.) Open .bashrc
2.) Insert PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig (or wherever you store your packages) and export PKG_CONFIG_PATH
3.) Save & close .bashrc
pcl_process.cpp - Processes pairs of RECTIFIED stereo images using OpenCV's SGBM algorithm to obtain disparity map, generates point clouds from disparity map, filters each point cloud using Statistical Outlier Removal (SOR) filtering, and saves the processed point cloud into a folder. To compile, type ./pcl_process_compile.bat and execute program by typing ./output.
Source Image (Left image shown):
Disparity Map
Point Cloud