Skip to content

Preserve OpenSfM intrinsics when importing ODM cameras - #3806

Open
Afloat16 wants to merge 3 commits into
nerfstudio-project:mainfrom
Afloat16:process-data/odm-camera-calibration
Open

Afloat16 wants to merge 3 commits into
nerfstudio-project:mainfrom
Afloat16:process-data/odm-camera-calibration

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 7, 2026

Copy link
Copy Markdown

Convert normalized principal point offsets to pixels using the image's longer side. Perspective and basic fisheye cameras omit the offset fields, so import those as centered. Spherical images have no focal length and need the equirectangular calibration used by the Metashape importer. Preserve the OpenCV fisheye k4 coefficient. Report empty camera lists and unsupported models directly instead of raising IndexError or KeyError.

Added parameterized regression coverage. Exercised the converter in isolation on eight JSON fixtures with NumPy, including portrait-independent scale, missing offsets, spherical and fisheye models, and invalid model descriptions. The full Nerfstudio checks were not run.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant