Skip to content

Use the registered camera dimensions for each SfM depth map - #3804

Open
Afloat16 wants to merge 1 commit into
nerfstudio-project:mainfrom
Afloat16:fix/sfm-depth-camera-size
Open

Afloat16 wants to merge 1 commit into
nerfstudio-project:mainfrom
Afloat16:fix/sfm-depth-camera-size

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 6, 2026

Copy link
Copy Markdown

Depth export currently looks up camera 1 before iterating over images. Reconstructions without that ID fail, and mixed-resolution images are clipped or written at another camera’s size. Look up the camera referenced by each image for clipping and output allocation. The regression writes and reads a real two-camera sparse model and checks pixel depth in both output PNGs.

Tested with pytest -o addopts= tests/process_data/test_sfm_depth_camera_size.py. The new regression fails on main and passes with the fix. The license, Ruff lint and formatting checks pass.

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