Semiautomatic contour detection in M-mode echocardiography images