Closed prajwalchidananda closed 1 month ago
Interestingly, "SIMPLE_RADIAL" works.
Hi, can you maybe share the dataset you used so we can reproduce the error?
Hello, I also encountered the same error with a fisheye dataset from nerfstudio
. Here is the DATASET and existing database at dozer/colmap/database.db
Then run,
glomap mapper \
--database_path dozer/colmap/database.db \
--image_path dozer/images \
--output_path dozer_glomap/
It turns out that poselib does not implement the OPENCV_FISHEYE camera model. It throws an exception, see following code snippet from poselib:
void OpenCVFisheyeCameraModel::project(const std::vector<double> ¶ms, const Eigen::Vector2d &x,
Eigen::Vector2d *xp) {
throw std::runtime_error("nyi");
}
void OpenCVFisheyeCameraModel::project_with_jac(const std::vector<double> ¶ms, const Eigen::Vector2d &x,
Eigen::Vector2d *xp, Eigen::Matrix2d *jac) {
throw std::runtime_error("nyi");
}
void OpenCVFisheyeCameraModel::unproject(const std::vector<double> ¶ms, const Eigen::Vector2d &xp,
Eigen::Vector2d *x) {
throw std::runtime_error("nyi");
}
@vlarsson FYI
This should be fixed once https://github.com/PoseLib/PoseLib/pull/104 is merged.
Thanks Viktor, that's great.
This is now fixed in PoseLib. There are however some of COLMAPs camera models that are not yet implemented. These will be added once https://github.com/PoseLib/PoseLib/tree/camera_models is finished.
When I try to run glomap with known intrinsics, I get an error.
I run the following:
Extraction [Successful]:
Matching [Successful]:
Mapping [Unsuccessful]:
Output:
Any insights as to why this happens?