Contour labelling by pyramidal processing