From 7ae050cc87a77e062920a51e401478bb5653a1c0 Mon Sep 17 00:00:00 2001 From: Ayush Baid Date: Wed, 6 Jan 2021 12:08:22 +0530 Subject: [PATCH] adding default color values to fix equality check --- gtsam/slam/dataset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/slam/dataset.h b/gtsam/slam/dataset.h index d96c11167..8ceacf31c 100644 --- a/gtsam/slam/dataset.h +++ b/gtsam/slam/dataset.h @@ -221,7 +221,7 @@ struct SfmTrack { SfmTrack(): p(0,0,0) {} SfmTrack(const gtsam::Point3& pt) : p(pt) {} Point3 p; ///< 3D position of the point - float r, g, b; ///< RGB color of the 3D point + float r = 0, g = 0, b = 0; ///< RGB color of the 3D point std::vector measurements; ///< The 2D image projections (id,(u,v)) std::vector siftIndices;