Probabilistic labelling for enhancement of vessel networks applied to retinal images