Discriminative Generalized Hough transform for localization of joints in the lower extremities