split hough to a base class and a line detector