cv::solvePoly interprets coefficients different than in documentation (Bug #1060)


Added by marco kruse almost 14 years ago. Updated almost 14 years ago.


Status:Done Start date:
Priority:Normal Due date:
Assignee:Ilya Lysenkov % Done:

0%

Category:documentation
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision 99bae771
Added by Ilya Lysenkov almost 14 years ago

Fixed coefficients order in solvePoly doc (ticket #1060)

Revision 087bab6c
Added by Roman Donchenko over 11 years ago

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

Also available in: Atom PDF