Optimization of Contour Detection in Cardiac MRI Using Active Appearance Models: Definition of the Training Set