Perturbation of polynomials and applications to the Hough transform