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;