aboutsummaryrefslogtreecommitdiff
path: root/src/poser_epnp.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-04-04 21:25:29 -0400
committercnlohr <lohr85@gmail.com>2018-04-04 21:25:29 -0400
commitb8447455fdce570e22094e2a71f2fa755724e95b (patch)
treeeb14e1a4f1a256701a692995dfbcf00649f88aee /src/poser_epnp.c
parentce6322b6b604b12018a2daf427dbd36afc5fbda2 (diff)
downloadlibsurvive-b8447455fdce570e22094e2a71f2fa755724e95b.tar.gz
libsurvive-b8447455fdce570e22094e2a71f2fa755724e95b.tar.bz2
Allow calibration with one lighthouse
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 eaa1659..7e922e7 100644
--- a/src/poser_epnp.c
+++ b/src/poser_epnp.c
@@ -66,7 +66,7 @@ static SurvivePose solve_correspondence(SurviveObject *so, epnp *pnp, bool camer
static int opencv_solver_fullscene(SurviveObject *so, PoserDataFullScene *pdfs) {
SurvivePose additionalTx = {0};
- for (int lh = 0; lh < 2; lh++) {
+ for (int lh = 0; lh < so->ctx->activeLighthouses; lh++) {
epnp pnp = {.fu = 1, .fv = 1};
epnp_set_maximum_number_of_correspondences(&pnp, so->sensor_ct);