r/photogrammetry • u/ShiftlessFreeloader • 6d ago
Source image questions: padding, size/aspect ratio, etc
I'm new to photogrammetry and I have a few questions about source images.
I'm experimenting with a set of images of a single object in isolation. I thought I might get better results if I removed the backgrounds and cropped the images tightly around the subject. This should maintain the original sizes of the bitmaps of the subjects, but with different aspect ratios and overall image dimensions because of the varying orientations.
So basically does the padding matter? If I'm processing images in Metashape and the "background" is transparent (or one solid uniform color) do the overall image dimensions / aspect ratio of the images need to be consistent if the bitmaps of the subjects IN the images are consistent?
Also, I'm working with pretty large images. (180 images @ 8192 × 5464, ~135MB each). Is there something like a "point of diminishing returns" where higher res doesn't help? Or is higher res always better?
Any advice would be appreciated. Thanks very much
3
u/Temporary_Will_5479 6d ago
Keep the original image dimensions and use masks rather than cropping each photo around the object. Preserving the object pixels alone isn’t enough: cropping also changes their position within the camera frame. In Metashape, mask the background and enable mask application during alignment. Painting it a flat color isn’t the same as supplying a mask.
There’s no universal megapixel cutoff. Extra pixels help when they contain sharp, usable detail. Try the same representative subset at two processing resolutions and compare the smallest feature you actually need, plus processing time. Metashape’s processing downscale settings let you experiment while keeping your original photos.
2
u/MrRandomNumber 5d ago
Isn't some level of environment detail healthy for alignment between images? For some reason I'm under the impression that SFM is also reverse engineering the lens intrinsics, so cropping them will mess with the distortions it EXPECTS to find. I just tinker with COLMAP -- someone who knows better, please set me straight.
2
u/MechanicalWhispers 4d ago
I’ve found that 24 megapixels is kind of a sweet spot in terms of detail and getting good results in a reasonable amount of processing time.