Variation Based Dense 3D Reconstruction