diff --git a/src/vw/BundleAdjustment/CameraRelation.cc b/src/vw/BundleAdjustment/CameraRelation.cc index d50f4b597..c29eecbdc 100644 --- a/src/vw/BundleAdjustment/CameraRelation.cc +++ b/src/vw/BundleAdjustment/CameraRelation.cc @@ -95,7 +95,7 @@ namespace ba { } // Appending to list - features_added.push_back( f_ptr( new FeatureT(*cmiter, cp_i) ) ); + features_added.push_back( f_ptr( new FeatureT(*cmiter, cmiter->image_id()) ) ); // Attaching to camera node (*this)[cmiter->image_id()].relations.push_back( features_added.back() ); diff --git a/src/vw/BundleAdjustment/CameraRelation.h b/src/vw/BundleAdjustment/CameraRelation.h index eaba275ed..f226ead31 100644 --- a/src/vw/BundleAdjustment/CameraRelation.h +++ b/src/vw/BundleAdjustment/CameraRelation.h @@ -107,8 +107,8 @@ namespace ba { FeatureBase(id), m_ip(ip) {} // For building from control networks IPFeature ( ControlMeasure const& cmeas, - uint32 const& /*point_id*/ ) : - FeatureBase( cmeas.image_id() ) { + uint32 const& cam_id ) : + FeatureBase( cam_id ) { m_ip = ip::InterestPoint( cmeas.position()[0], cmeas.position()[1], cmeas.sigma()[0] );