Segmentation of cardiac and vascular ultrasound images with extension to border kinetics