A model of contour grouping incorporating local cues