Imported from https://github.com/hieuttcse/variational_plenoptic_disparity_estimation