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

How to define an intrinsic matrix for the perspective image? #13

Open
zitianlll opened this issue Dec 5, 2024 · 1 comment
Open

How to define an intrinsic matrix for the perspective image? #13

zitianlll opened this issue Dec 5, 2024 · 1 comment

Comments

@zitianlll
Copy link

As we know, a panorama is often captured by a fish-eye len and exists barrel distortion? I'd like to know what is the intrinsic matrix(fx,fy,cx,cy) of the generated perspective image from the panorama.

Thank a lot!

@fuenwang
Copy link
Owner

fuenwang commented Dec 5, 2024

After stitching to equirectangular format from fisheye cameras, we can simply assume the pixels are projected to a sphere.
We just need to define a camera plane with given FoV, height, and width. Then intrinsic can be defined.
You can refer to this line. "K" is the intrinsic of perspective images.

https://github.com/fuenwang/Equirec2Perspec/blob/master/Equirec2Perspec.py#L49

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