Bugfix for solvePnPRansac with SOLVEPNP_ITERATIVE
authorTomasz Ożański <tozanski@users.noreply.github.com>
Tue, 20 Jul 2021 11:49:40 +0000 (13:49 +0200)
committerTomasz Ożański <tomasz.ozanski@pwr.edu.pl>
Sat, 3 Dec 2022 15:46:03 +0000 (16:46 +0100)
commitd1ff87d94d9307b63276233fea2dcaf21d8e5c10
tree73f55a16abd437fb65abd0d083f98cb967023f75
parent8334ee18e62c9f4dbcc1dc4a71174fc466a58b99
Bugfix for solvePnPRansac with SOLVEPNP_ITERATIVE

The current implementation overwrites the result rotation and translation in every iteration.
If SOLVEPNP_ITERATIVE was run as a refinement it will start from the incorrect initial
transformation thus  degrading the final outcome.
modules/calib3d/src/solvepnp.cpp