Itseez/opencv — pull request #674 by chouclee (2013-03-20 05:15:03+00:00)
Title: Bugfix to potential inaccuracy in function:polyfit

1.Modify the default datatype(CV_32F) to CV_64F.
2.Re-write the generation of X matrix,reducing the times of multiplication.
The problem has been reported at http://code.opencv.org/issues/2887