aboutsummaryrefslogtreecommitdiff
path: root/src/poser_epnp.c
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-03-26 16:47:11 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-03-26 16:48:19 -0600
commita2eef0e9d90a196f86dece20c6346c55af3bdbc0 (patch)
treed04932c843859e924956e132fc71d75064e961d8 /src/poser_epnp.c
parentf73076dd1703601e5e14ab740cd26d29e0b9593d (diff)
downloadlibsurvive-a2eef0e9d90a196f86dece20c6346c55af3bdbc0.tar.gz
libsurvive-a2eef0e9d90a196f86dece20c6346c55af3bdbc0.tar.bz2
Made SBA and EPNP follow availableLighthouses
Diffstat (limited to 'src/poser_epnp.c')
-rw-r--r--src/poser_epnp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poser_epnp.c b/src/poser_epnp.c
index 632737b..7e86542 100644
--- a/src/poser_epnp.c
+++ b/src/poser_epnp.c
@@ -125,7 +125,7 @@ int PoserEPNP(SurviveObject *so, PoserData *pd) {
SurvivePose posers[2];
int meas[2] = {0, 0};
- for (int lh = 0; lh < 2; lh++) {
+ for (int lh = 0; lh < so->ctx->activeLighthouses; lh++) {
if (so->ctx->bsd[lh].PositionSet) {
epnp pnp = {.fu = 1, .fv = 1};
epnp_set_maximum_number_of_correspondences(&pnp, so->sensor_ct);