Gait recognition via optimally interpolated deformable contours