Automated analysis of the left-ventricular diameter time curve from echocardiographic recordings