tokens: SfT solves two fundamental and intimately related problems : i ) template - image registration , which associates pixels in the image to their corresponding locations in the template , and ii ) shape inference , which recovers the observed 3D shape or equivalently the template 's 3D deformation .