cv::solvePoly interprets coefficients different than in documentation (Bug #1060)
Description
The polynomial coefficients handed over to cv::solvePoly in cv::mat& coeffs should be interpreted as given in descending order of power (according to documentation on http://opencv.jp/opencv-2.2_org/cpp/core_operations_on_arrays.html#cv-solvepoly. )
But a quick test shows that they are interpreted in reverse order (which makes more sense, i agree, but should be fixed in the documentation).
To see this, just run enter the coefficients of a polynomial that is easily solvable manually (x^3^ + 1) in both ways into the function and look at the results.
Associated revisions
Fixed coefficients order in solvePoly doc (ticket #1060)
Merge pull request #1060 from pengx17:2.4_setbinary_fix
History
Updated by Ilya Lysenkov almost 14 years ago
- Status deleted (
Open)
Updated by Ilya Lysenkov almost 14 years ago
Thank you! Fixed in -r5394.
- Status set to Done
- (deleted custom field) set to fixed