What I have done: To create a novel view(right image) from left image(given), I used the formula for pure translation between views(from Zissermann book) as:
x' = x + K.t/Z
x'= [u' v' 1]; x = [u v 1]; K = [f 0 cx; 0 f cy;0 0 1]; t = [t1 t2 t3]^T; Z - depth of pixel in left image
The images and camera matrix were taken from Middlebury stereo 2014 dataset.
By implementing this, I have an image with holes(black regions) due to disocclusions.
What I need to do :
To fill these holes, several algorithms exist which modify the depth map of right view prior to warping.
Can you tell me how I can find depth map of my synthesized(right) view ?
results matlab Above is the result I have got till now, please help!