Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports equirectangular camera model #1

Open
zwl995 opened this issue May 26, 2023 · 3 comments
Open

Supports equirectangular camera model #1

zwl995 opened this issue May 26, 2023 · 3 comments

Comments

@zwl995
Copy link

zwl995 commented May 26, 2023

Hello, would you consider adding the equirectangular camera model?

@lcmrl
Copy link
Collaborator

lcmrl commented May 27, 2023

Hi, this is a feature that would be nice to add. COLMAP_SLAM calls the COLMAP API, but currently in the official COLMAP the equirectangular camera model is not implemented yet. I think this would help colmap/colmap#6. Have you seen if this https://github.com/daleydeng/colmap/tree/cvai works for a regular SfM with equirectangular model work? If yes, it should be quick to include it in COLMAP_SLAM

@zwl995
Copy link
Author

zwl995 commented Sep 20, 2023

Yes, I have to see , the effect is better is not so good, https://github.com/stella-cv/stella_vslam code offer equirectangular camera model SLAM system, but it use the ORB, the outdoor scene will be lost, the cumulative error is bigger

@lcmrl lcmrl closed this as completed Sep 21, 2023
@lcmrl lcmrl reopened this Sep 21, 2023
@lcmrl
Copy link
Collaborator

lcmrl commented Sep 21, 2023

Hi, I've not tried yet, but If you have the binaries from https://github.com/daleydeng/colmap/tree/cvai you should able to run it with colmap-slam. In config.ini :

  1. change COLMAP_EXE_DIR = C:\...\COLMAP\COLMAP-3.8-windows-cuda to point to the binaries
  2. change camera calibration
[CALIBRATION]
# OPENCV camera model (see COLMAP doc)
# {
#    "0": "(SIMPLE_PINHOLE, 3)",
#    "1": "(PINHOLE, 4)",
#    "2": "(SIMPLE_RADIAL, 4)",
#    "3": "(RADIAL, 5)",
#    "4": "(OPENCV, 8)",
#    "5": "(OPENCV_FISHEYE, 8)",
#    "6": "(SIMPLE_RAFULL_OPENCVDIAL, 12)",
#    "7": "(FOV, 5)",
#    "8": "(SIMPLE_RADIAL_FISHEYE, 4)",
#    "9": "(RADIAL_FISHEYE, 5)",
#    "10": "(THIN_PRISM_FISHEYE, 12)"
# }
N_CAMERAS = 1
CAM0 = 9,2448,2048,774.076,1273.05,1011.24,-0.06044,0.0025

The first number is the camera model, you have to check the right number from the repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants