Dense Depth Map Reconstruction: A Minimization and Regularization Approach which Preserves Discontinuities