Shape estimation of deforming structures