Coder Social home page Coder Social logo

bobdeng1974 / stereo_matching Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jiuerbujie/stereo_matching

0.0 0.0 0.0 5.32 MB

stereo rectification and stereo matching for perspective camera and fisheye camera, based on opencv

C++ 73.60% C 26.40%

stereo_matching's Introduction

Stereo rectification and stereo matching for perspective and fisheye (omnidirectional) camera, based on Opencv.

The feature of this project is that two rectification methods are available.

The first is conventional perspective rectification, i.e., the rectified images are perspective so that stereo matching can be applied in one line. However, since the fields of view (FOV) for omnidirectional camera is very large, conventional rectified image should be larger to contain all scene view. The second one is a longitude-latitude rectification. It is based on sphere model of omnidirectional camera. Each pixel on rectified image is one point on unit sphere, and the location on image represents the longitude and latitude on sphere. It means that all points on unit have longitude and latitude and then have locations on rectified images. The benefit is that unlike perspective rectification, all details of the origional image can be preserved and the black region is not large on boundary. In addition, stereo matching is also avaible in a line because a horizontal line in 3D space is projected on a latitude line on unit sepher.

See Folder 'Images' to see the origional images and rectified images using the above two methods.

The parameters of camera are parsed from an ini file. There is a class to read parameters in Folder 'Utilities'. The format of ini file must be strictly followed by the example file named by 'EXAMPLE.ini'.

Methods for rectification is in Folder 'Stereo'.

The interfaces are about the same with rectification functions in Opencv.

stereo_matching's People

Contributors

jiuerbujie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.