A Learning-Based Hierarchical Model For Vessel Segmentation