A dynamic elastic model for segmentation and tracking of the heart in MR image sequences