Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeir Mierle <mierle@gmail.com>2012-09-20 22:55:44 +0400
committerKeir Mierle <mierle@gmail.com>2012-09-20 22:55:44 +0400
commite38c1a5ae721630c217ca7830fd7aabf6f4620e0 (patch)
tree825f3e57ba2ba894f7cd01489a81b4618ab6e38a /source/blender/blenkernel/intern/sca.c
parenta4f73c5694a44e6948665ee54d51d8df70be8e24 (diff)
Make Euclidean resection "always" succeed.
The Euclidean resection code had a magical constant, 1e-3, used to compare the results of solving an equation. This failure detection was well-intended, trying to prevent poor solutions from getting made without notifying the caller. Unfortunately in practice, this threshold is too conservative. Furthermore, it is not clear the threshold should exist at all; the purpose of the Euclidean resection is to come up with the best solution it can; other methods (e.g. reprojection error) should be used to compare whether the method succeeded. This commit changes the Euclidean EPnP code to always succeed, causing the previous fallback to projective resection to never run. In most cases, this will result in better reconstructions. This should, in most cases, fix the dreaded "flipping" problem.
Diffstat (limited to 'source/blender/blenkernel/intern/sca.c')
0 files changed, 0 insertions, 0 deletions