In this project, I will use SAD algorithm to build a sparse or dense map that assigns relative depths to pixels in the input images.
(eippolar constarint)
For a point P projects onto the left and right projection plane as Pl and Pr. If we want to match Pl on the right plane, we have to search all the left plane (2D scope) to find Pr. However, epipolar constraint will reduce the match into a 1D scope matching since the corresponding point Pr will lie on the epipolar line.
In digital image processing, the sum of absolute differences (SAD) is a measure of the similarity between image blocks. It is calculated by taking the absolute difference between each pixel in the original block and the corresponding pixel in the block being used for comparison.
Steps:
1. Compute the depth map for many different window sizes
Try to combine (6x6) with (30x30) by calculating the mean of two images:
im1=imread('re1.png');
im2=imread('re2.png');
im3 = (im1 + im2) /2;
imshow(im3)
2. One challenge is images that have large blank regions; develop some other heuristics or rules to "guess" what the best correspondence is for these large regions.
Use SAD algorithm to match the window will not get the blank regions since the window will match the other one through finding the minimun absolute value of subtraction results.
If using other algorithm and some regions can not find their maching regions, we can use Interpolation to calculate a blank region through adjacent regions.
http://vision.deis.unibo.it/~smatt/Seminars/StereoVision.pdf
https://blog.csdn.net/u012507022/article/details/51446891
http://www.cnblogs.com/Crazy-Dog123/articles/5043864.html
http://www.cnblogs.com/Crazy-Dog123/articles/5041950.html
https://blog.csdn.net/ccblogger/article/details/72900316
https://pdfs.semanticscholar.org/5ff4/a905eeb744129d17a3039f229802749c3edc.pdf
https://github.com/luosch/stereo-matching/tree/master/ALL-2views
http://vision.middlebury.edu/stereo/data/
https://blog.csdn.net/liulina603/article/details/53302168