16
General / Re: Scanning objects in an uncontrolled environment
« on: July 11, 2024, 10:54:02 AM »
For improving the texture you could try
i'm a bit dubious about 360 cameras, because i'm sure it's physically impossible for them to truly have a single 'spherical centre' as they normally work by having two sensors looking opposite ways, just very close together. they might be stitched very nicely, but i don't think the geometry quite works as a perfect spherical image, so i wouldn't expect the alignment to work very well.
once the images are converted to equirectangular there's probably not much you can do about that, but if you are able to access the individual raw fisheye images before they are stitched then you may get a better alignment. if they are provided as a pair of fisheyes in the same image then make a copy of each image and mask out the left in one set and the right in the other.
if you're stuck with equirectangular video frames then you may have luck with identifying where the stitch line is - it should be a vertical seam down the middle, or pair of vertical seams somewhere else (i guess!) and you can take the same approach as above by copying the images and masking out either side of the seam(s) so metashape is able to ignore the incorrect geometry caused by assuming a single spherical sensor when it was really two close together, so long as the image wasn't too warped in the process of stitching.
never tried it and all totally hypothetical, and probably a dangerous rabbit hole to get lost down.
better solution would be to use a normal camera for scanning 'objects' whereas 360 cameras are useful for enclosed spaces, based on the simple rule of thumb that the thing you are scanning should fill the image. in an enclosed or interior space the 360 camera is great as the image is full of what you are trying to scan, because it's everything around you.
- estimate image quality - this will give a score to each image according to how sharp it is, which you can use to filter out blurry images. if you perform quality estimation, you can sort by quality in the details view of the photos pane and disable the n% worst images.
- add frame images - if you use a normal camera (rather than extract from your existing 360 images) to get higher quality coverage of the object, then align these images with your current dataset, you can leave them disabled for mesh generation, and the enable them and disable the 360 images for texture generation.
i'm a bit dubious about 360 cameras, because i'm sure it's physically impossible for them to truly have a single 'spherical centre' as they normally work by having two sensors looking opposite ways, just very close together. they might be stitched very nicely, but i don't think the geometry quite works as a perfect spherical image, so i wouldn't expect the alignment to work very well.
once the images are converted to equirectangular there's probably not much you can do about that, but if you are able to access the individual raw fisheye images before they are stitched then you may get a better alignment. if they are provided as a pair of fisheyes in the same image then make a copy of each image and mask out the left in one set and the right in the other.
if you're stuck with equirectangular video frames then you may have luck with identifying where the stitch line is - it should be a vertical seam down the middle, or pair of vertical seams somewhere else (i guess!) and you can take the same approach as above by copying the images and masking out either side of the seam(s) so metashape is able to ignore the incorrect geometry caused by assuming a single spherical sensor when it was really two close together, so long as the image wasn't too warped in the process of stitching.
never tried it and all totally hypothetical, and probably a dangerous rabbit hole to get lost down.
better solution would be to use a normal camera for scanning 'objects' whereas 360 cameras are useful for enclosed spaces, based on the simple rule of thumb that the thing you are scanning should fill the image. in an enclosed or interior space the 360 camera is great as the image is full of what you are trying to scan, because it's everything around you.