Skip to content

Commit

Permalink
Make IPFeature use given Camera ID
Browse files Browse the repository at this point in the history
Previously it was using the information available in Control Measure. Yet not always do I want to use this value.
  • Loading branch information
Zack Moratto committed Aug 12, 2010
1 parent a8e582d commit aefd201
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vw/BundleAdjustment/CameraRelation.cc
Expand Up @@ -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() );
Expand Down
4 changes: 2 additions & 2 deletions src/vw/BundleAdjustment/CameraRelation.h
Expand Up @@ -107,8 +107,8 @@ namespace ba {
FeatureBase<IPFeature>(id), m_ip(ip) {}
// For building from control networks
IPFeature ( ControlMeasure const& cmeas,
uint32 const& /*point_id*/ ) :
FeatureBase<IPFeature>( cmeas.image_id() ) {
uint32 const& cam_id ) :
FeatureBase<IPFeature>( cam_id ) {
m_ip = ip::InterestPoint( cmeas.position()[0],
cmeas.position()[1],
cmeas.sigma()[0] );
Expand Down

0 comments on commit aefd201

Please sign in to comment.