r/computervision • u/Key-Obligation-1065 • Oct 18 '26
Discussion Follow-up to my panorama matcher: with the photo's camera found, I project every splat into it to decide what the photo actually saw
Two weeks ago I posted here about finding where a photo sits inside the 360° panorama that World Labs' Marble generates from it, using a deliberately dumb edge-matching grid. Thanks for the suggestions on learned matchers and on solving field of view from correspondences. The grid still holds up, so those are saved for when it stops being enough.
Here's what the recovered camera is for. My game scores every Gaussian splat by how real it is. Each splat's center goes through the photo's pinhole camera: behind the camera scores 0, and otherwise the score is how far inside the frame it lands (with a soft border that fades over 5% of the frame on each side) times how near it is (fully real out to 6 camera heights, imagined from 25). A world made from several photos takes the max. It runs live in a shader, and 51 shared test cases pin the TypeScript reference to 8 decimal places and the GPU version to 5.
Two things came up along the way. Marble's metric scale is an estimate: checked against objects of known size, one outdoor world came out about 1.5 times too large. So distances are in camera heights, the photo spot's height above the world's own collision floor, which also works for drafts that have no scale at all. And outdoors there's often no floor straight under the camera, since a single photo never looks down, so the height comes from the nearest floor beside the hole.
The big gap is occlusion: a splat hidden behind a sofa in the photo still counts as seen. My plan is a monocular depth map of the original photo, where anything well behind the visible surface at that pixel counts as invented. Which depth model would you trust for that, and how would you line its scale up with the generated world's? Or is there a cleaner visibility test against a single image?
I'm building and experimenting with Cline AI.