A new scheme for curved needle segmentation in three-dimensional ultrasound images