Zaslat SMS: Efficient dense stereo with occlusions for new view-synthesis by four-state dynamic programming