fixed landmark key

release/4.3a0
Luca 2014-04-28 13:16:25 -04:00
parent 870a20396f
commit 15201bda0f
1 changed files with 1 additions and 1 deletions

View File

@ -706,7 +706,7 @@ bool writeBALfromValues(const string& filename, const SfM_data &data, Values& va
} }
for (size_t j = 0; j < dataValues.number_tracks(); j++){ // for each point for (size_t j = 0; j < dataValues.number_tracks(); j++){ // for each point
Key pointKey = symbol('l',j); Key pointKey = P(j);
if(values.exists(pointKey)){ if(values.exists(pointKey)){
Point3 point = values.at<Point3>(pointKey); Point3 point = values.at<Point3>(pointKey);
dataValues.tracks[j].p = point; dataValues.tracks[j].p = point;