3D foot posture quantification using articular surface information from the template-based deformable model