From 6944e884c9a8b2722b4dfb25d56f2c034fcd20ba Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Fri, 24 Feb 2012 21:09:24 +0000 Subject: [PATCH] Fixed error --- gtsam/slam/GeneralSFMFactor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/slam/GeneralSFMFactor.h b/gtsam/slam/GeneralSFMFactor.h index 674d4e3f9..4f1f48958 100644 --- a/gtsam/slam/GeneralSFMFactor.h +++ b/gtsam/slam/GeneralSFMFactor.h @@ -83,7 +83,7 @@ namespace gtsam { boost::optional H1=boost::none, boost::optional H2=boost::none) const { try { - Point2 reprojError(camera.project2(point,H1,H2) - z_); + Point2 reprojError(camera.project2(point,H1,H2) - measured_); return reprojError.vector(); } catch( CheiralityException& e) {