Reconstructing and registering 3D surface from single intensity image