Generalized Hough transform