Automated Endocardial Border Detection from Cardiac Magnetic Resonance Images for Quantitative Assesment of Left Ventricular Function