Skip to content

Study of stereo photogrammetry implementation in Matlab using disparity map and feature triangulation to reconstruct the scene and Structure from Motion to estimate the camera pose

Notifications You must be signed in to change notification settings

VictorEscribano/Matlab-photogrammetry

Repository files navigation

3D Reconstruction from stereo images

Requirements

  • Computer vision toolbox
  • Webcam toolbox
  • Matlab 2022b (recomended)

Introduction

This project focuses on 3D scene reconstruction by means of clasis photogrametry principles using MATLAB. To generate the poincloud the following steps will be done:

  • Design a support for the stereo cameras to ensure the same external parameters in all images.

* Stereo camera calibration to extract the intrinsic parameters of both sensors and the position of the right camera relative to the left (main) one.

* Obtain a set of consecutive images of the environment to recostruct.

* Use Structure from Motion (Visual odometry) to estimate the actual position of the left camera with respect to the previous frame, and with the extrinsic parameters estimate also the right camera position relative to the new left camera transformation.

* Extract a 3D poincloud by means of disparity map or feature triangulation for every camera pose.

* Fusion those pointclouds with different orientations to make a sigle output with all the camera views.

* (Extra) Extract 3D known shapes from the computed poincloud (spheres, cones, etc.)

Main issues

  • When obtaining the stereo pair images at freehand some error due to hand tremoring can be induced, affecting the computation of the disparity map. As it is known, the colser objects have bigger disparity and the ones that are futher away have less disparity between pixels. This and tremor affcts more to the objects that are colser to the cameras on the scene.

To solve this a base for the cameras have been designed in order toavoid this hand tremoring. Better solutions can be implemented such as synchronize the shutter of the cameras, some cameras can accept software triggering or some PWM hardware triggering to capture the images with the same timestamp, in this report this approach will not be used.

  • Photogrametry algorithms like this one does not hanle reflections, this is because the features of one image does not correspond with the ones on the other one, causing problems on reconstructing reflecting surfaces.

To solve this I personally recomend the use of more complex tools like NeRF (Neural Radial Fields), this neural networks can make very dense and light responive reconstructions.

Documentation

Documentation of this project can be found on:

References

About

Study of stereo photogrammetry implementation in Matlab using disparity map and feature triangulation to reconstruct the scene and Structure from Motion to estimate the camera pose

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages