OpenDroneMap / ODM

A command line toolkit to generate maps, point clouds, 3D models and DEMs from drone, balloon or kite images. 📷
https://opendronemap.org
GNU Affero General Public License v3.0
4.92k stars 1.11k forks source link

Dynamic depthmap resolution #1426

Closed pierotofy closed 2 years ago

pierotofy commented 2 years ago

This PR adds a more dynamic approach to depthmap resolution calculation based on pc-quality. When images are very small the scale factor is doubled, when images are very large the scale factor is halved (the behavior remains unchanged for most consumer cameras that fall somewhere in between).

This strikes a better balance of memory usage vs. quality. When images are very large, the depthmap computation becomes prohibitively expensive for dubious gains in output quality.

Users can of course specify their own desired depthmap resolution via --depthmap-resolution (which we shall keep, and not deprecate as we originally planned) to override any calculations / optimizations by the software.