Skip to content

Implementation of Stereo Correspondence Algorithm that Uses Feature Based Methods to Find Sparse Disparity

Notifications You must be signed in to change notification settings

sglbl/Stereo-Correspondence-For-Disparity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stereo-Correspondence-For-Sparse-Disparity

Implementation of Stereo Correspondence Algorithm that Uses Feature Based Methods to Find Sparse Disparity

Feature Based Method That Is Used

  • Sift With Norm L2 Brute Force Matcher
  • ORB With Flann Matcher
  • Canny Edge Feature Detector with Norm Hamming Brute Force Matcher

Data (Sawtooth, Venus, Bull, Poster, Barn 1, Barn 2 images) were taken from http://vision.middlebury.edu/stereo/data/scenes2001/

Submission includes report that describes features selected and feature matching algorithm.

Algorithm

Create Sift/Orb/Fast_With_Brief object
Turn images into grayscale
if (edgeDetector selected)
  turn grayscale images to edge images with Canny
  Detect keypoints using fast object created above
  Detect descriptors using brief object and keypoints
else
  Detect keypoints and descriptors using object
  
Create matcher object (L2/NORM HAMMING/FLANN)
Call match() / knnMatch() using descriptors on arguments
Find good matches by checking distances of >%70 difference
Call drawMatches() to see the corresponding matches
Create empty disparity map with image height x width

For every match in good Matches
  Get point coordinates from keyPoints
  Find disparity by subtracting xVals of matching points
  Make disparity as eight times absolute value of it
Print implemented disparity map and openCV disparity map

Requirements

  • Python version: 3.10.4
  • OpenCV version: 4.5.5
  • Numpy and matplotlib

Examples

Sift With Bf Norm L2

image

Orb With Flann

image

Edge with Fast Brief Norm Hamming

image

About

Implementation of Stereo Correspondence Algorithm that Uses Feature Based Methods to Find Sparse Disparity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages