Thanks for sharing the code. I have tried your code for two sequences, ballet and 3D room. The rendered right view is fine, but there is a problem with the left view. The first frame of the left view is ok, but the holes are not getting filled starting from the second frame and due to this, patches are appearing at the occlusion spots. The first two frames of the Room sequence (colour and luma components) for the rendered left view can be found here.
Could you please advise?
Thanks & Regards
The Ghost artifacts are due to the imperfections of the depth maps. The depth maps may not necessarily align with the color image edges.
Further, such artifacts are due to the hole filling problems that are inherent with DIBR systems. However you may reduce the disparity so that you have less holes.
Thanks for your inquiry.