Skip to content

Pradip-Kathiriya/Stereo-Vision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stereo-Vision

Project Description

In this project, I have implemented the concept of Stereo Vision on three data sets, each of them containing 2 images of the same scenario but taken from two different camera angles. By comparing the information about the scene from 2 vantage points, we can obtain the 3D information by examining the relative position of the objects. I have also estimated the camera pose using the concept of the Essential matrix (E), Fundamental matrix (F) and, triangulation.

Pipeline

1. Calibration

  • Compare the two images and select the set of matching feature. Tune the Lowe's ration to reject the outliers
  • Estimate the Fundamental matrix using the obtained matching feature. Use the RANSAC to make your estimation more robust. Enforce the rank 2 condition for the fundamental matrix.
  • Estimate the Essential matrix(E) from the Fundamental matrix(F) and instrinsic camera parameter.
  • Decompose the E into a translation T and rotation R
  • Disambugiate the T and R using triangulation.

2. Rectification

  • Apply perspective transfomation to make sure that the epipolar lines are horizontal for both the images. This will limit the search space to horizontal line during the corrospondace matching process in the later stage.

3. Corrospondence

  • For each epipolar line, apply the sliding window with SSD to find the corrospondence and calulate disparity.
  • Rescale the disparity to be from 0-255 for visualization

4. Compute Depth Image

  • Using the disparity calculated above, compute the depth map. The resultant image has a depth image instead of disparity.

Dataset

MiddleBury Stereo Dataset

Result

  • Matching features in left and right image Feature_matching

  • Epipolar line corrosponding to the obtained matching feature Matching_Points_and_Epipolar_line

  • Rectified epipolar lines Rectified_Epipolar

  • Disparity and Depth map final_map

  • Disparity and Depth heat map final_heatmap

Requirement

  1. Python 2.0 or above
  2. OpenCV

License

License: MIT

Copyright (c) Jan 2023 Pradip Kathiriya

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages