Multi-level approach for the discriminative generalized hough transform