Automatic Left Ventricular Contour Extraction from Cardiac Magnetic Resonance Images Using Cantilever Beam and Random Walk Approach