Skip to content

kadri-ahmed/Multi-View-Stereo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi View Stereo

An implementation of a stereo-pipeline based on block-matching. Multiview-pointcloud registration uses Open3D implementations for ICP and coarse alignment.

Code was developed and tested under Ubuntu 22.04 LTS.

Dependencies:

Compile:

  • mkdir -p build && cd build
  • cmake ..
  • make

Run:

Images

  • Download desired images from the Midleburry dataset: https://vision.middlebury.edu/stereo/data/scenes2021/
    (Or use own dataset and introduce the same structure.)
    Point-cloud registration for multiple images is only available for ground-truth data (*.pfm)
  • An example structure would be:
./data/artroom 
		|-- artroom1 
			|-- calib.txt 
			|-- im0.png 
			|-- im1.png 
			|-- disp0.pfm (Optional -> Ground-Truth)
			|-- disp1.pfm (Optional Ground-Truth)
			|-- dist_coeffs.txt
		|-- artroom2
			|-- calib.txt
			|-- im0.png
			|-- im1.png
			|-- disp0.pfm (Optional -> Ground-Truth)
			|-- disp1.pfm (Optional Ground-Truth)
			|-- dist_coeffs.txt (Optional -> Undistort/Rectify)

Make sure to not add any other files to the filestructure as this may result in errors while parsing it. The outputfiles will be located in the same folder as the original scenery. The resulting depth image always corresponds to the LEFT stereo image.

  • Edit config.yaml file to suit individual purpose

  • cd build

  • ./stereo_fusion --path=../config.yaml

References

Rectification follows:

https://people.scs.carleton.ca/~c_shu/Courses/comp4900d/notes/rectification.pdf https://www.cs.cmu.edu/~16385/s17/Slides/13.1_Stereo_Rectification.pdf

Corresponding OpenCV methods to our own implementations are implemented for comparison:

https://opencv.org/

PointCloud registration is implemented using Open3D:

https://www.open3d.org/docs/release/index.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published