Deformable models with application to human cerebral cortex reconstruction from magnetic resonance images