Tracking deforming objects by filtering and prediction in the space of curves