Systolic merging and ranking of votes for the generalized Hough transform