Skip to content

Commit

Permalink
Merge pull request #73 from Jonathan-Gore/addsimpleradial
Browse files Browse the repository at this point in the history
Added SimpleRadial camera model to colmap.cpp
  • Loading branch information
pierotofy authored Apr 12, 2024
2 parents d2891b3 + a2a8505 commit 915afbf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions colmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ InputData inputDataFromColmap(const std::string &projectRoot){
cam->fy = readBinary<double>(camf);
cam->cx = readBinary<double>(camf);
cam->cy = readBinary<double>(camf);
}else if (model == SimpleRadial){
cam->fx = readBinary<double>(camf);
cam->fy = cam->fx;
cam->cx = readBinary<double>(camf);
cam->cy = readBinary<double>(camf);
cam->k1 = readBinary<double>(camf);
}else if (model == OpenCV){
cam->fx = readBinary<double>(camf);
cam->fy = readBinary<double>(camf);
Expand Down

0 comments on commit 915afbf

Please sign in to comment.