mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 12:36:12 -06:00
core: preserve solvePoly roots under coefficient rescaling This PR makes it so that a shared power of two is now applied to scale the internal polynomial coefficients before degree determination and root initialisation. The shift is limited to preserve non-zero components. Leading terms with exactly zero coefficients are removed, while the iteration method, input coefficients and output format are the same as before.