Grouping of Rectilinear Segments by the Labelled Hough Transform