The connectivity Hough transform and its fast implementation