Real-time imaging and automated segmentation of cartilage from 2D ultrasound images