A semi-automatic system for segmentation of cardiac M-mode images