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

Query regarding the focal length for undistorted images #13

Open
Joel-Rootgers opened this issue Nov 13, 2020 · 4 comments
Open

Query regarding the focal length for undistorted images #13

Joel-Rootgers opened this issue Nov 13, 2020 · 4 comments

Comments

@Joel-Rootgers
Copy link

Hello,

I assume the geolabel/cameras.txt has camera intrinsic parameters corresponding to the scale of the raw images. I was wondering how the focal length gets scaled down to match the width and height of the undistorted images (whose aspect ratio also varies from the raw images)

@csyhy1986
Copy link

I am also confused about the same thing. The files of cameras.txt records the camera parameters of the raw images, but the they did not indicate the corresponding images. The undistorted images have unknown camera parameters.

@lzx551402
Copy link
Owner

Hi, cameras.txt records the original camera parameters, including image size.
To obtain camera parameters, such as focal length of downscaled images, you may first compute the rescaling ratio in x and y, the apply the same ratio to adjust focal length.

@csyhy1986
Copy link

  issue in visualize.py  kpts0, kpts1 = read_kpt(kpt_path0), read_kpt(kpt_path0)

@ewrfcas
Copy link

ewrfcas commented Jul 17, 2024

Hi, cameras.txt records the original camera parameters, including image size. To obtain camera parameters, such as focal length of downscaled images, you may first compute the rescaling ratio in x and y, the apply the same ratio to adjust focal length.

However, the intrinsic matrix will also be influenced by undistortion. Thus we need more details about the new intrinsic for undistorted images.

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

4 participants