Xinghy98 / PolarRectification

Stereo images polar rectification for general motion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PolarRectification

Stereo images polar rectification for general motion.

This is my initial implementation of "M. Pollefeys, R. Koch and L. Van Gool, A simple and efficient rectification method for general motion", http://www.inf.ethz.ch/personal/pomarc/pubs/PollefeysICCV99.pdf.

This code is heavily based on the code from Néstor Morales Hernández 'PolarCalibration' https://github.com/nestormh/PolarCalibration

Camara rotation is compensated using homography estimated based on cv::findEssentialMat() and cv::recoverPose(). This compensation is required to make the camera axes parallel (seeing in the same direction) when camera is rotating between frames. After applying such 'derotation homography' the disparities become directed into single side (from left to right when moving forward).

TODO: Check if cv::warpPolar() could be usefull.

Example images:

test-images/2011_09_26_drive_0001_sync-63-64/2011_09_26_drive_0001_sync-63-64.gif

test-images/2011_09_26_drive_0001_sync-63-64/2011_09_26_drive_0001_sync-63-64-polar.gif

--

test-images/2011_09_26_drive_0005_sync-83-84/2011_09_26_drive_0005_sync-83-84.gif

test-images/2011_09_26_drive_0005_sync-83-84/2011_09_26_drive_0005_sync-83-84-polar.gif

About

Stereo images polar rectification for general motion


Languages

Language:C++ 98.0%Language:CMake 2.0%