Automatic Identification of the Cardiac Rest Period Using Template Updating for Magnetic Resonance Coronary Angiography