Precision measurement of cardiac structure and function in cardiovascular magnetic resonance using machine learning