Generalized hough transform