The task is to generate a virtual image from an arbitrary view angle based on stereo images.
The images are rectified, such that the epipolar lines are parallel to each other, which constraints the search of corresponding points on a line instead of the whole image.
Detect the corner in images according to the change of image brightness with Harris detector.
For a robust estimate of the fundamental matrix
With the fundamental matrix we are able to apply epipolar rectification.
Semi-global block matching (SGBM) [1] is used to obtain a dense stereo matching.
Resulting virtual image based on the Depth Based Image Rendering (DIBR) [2] algorithm.
[1] Hirschmüller H. Stereo Processing by Semiglobal Matching and Mutual Information[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2008, 30(2): 328-341.
[2] Zinger S S, Do Q L. Free-viewpoint depth image based rendering[J]. Journal of Visual Communication and Image Representation, 2010, 21(5): 533-541.