A new method for automatic segmentation of endocardial boundaries in echocardiographic sequences