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.91k stars 1.11k forks source link

Align Problem ? #1607

Closed sbonaime closed 1 year ago

sbonaime commented 1 year ago

Hi, I want to use the --align with a geotiff but the alignment failed. On the log I have

2023-02-17 11:11:15,110 INFO: Linear unit for Foundation-DSM detected as metre
2023-02-17 11:11:15,111 INFO: Calculated native resolution of Foundation-DSM as: 0.0 meters
2023-02-17 11:11:15,289 INFO: Linear unit for AOI-PCLOUD detected as metre.
2023-02-17 11:11:15,289 INFO: Calculated native resolution for AOI-PCLOUD as: 0.4 meters
2023-02-17 11:11:15,289 INFO: Preparing Foundation-DSM for registration.
2023-02-17 11:11:15,291 INFO: Resampling Foundation-DSM to a pixel resolution of: 0.370270091 meters
^[[93m[WARNING] Cannot compute alignment matrix: cannot reshape array of size 1825176 into shape (678,673)^[[0m
^[[93m[WARNING] Alignment to /foo/bar/gile_ortho.tif will be skipped

which correspond to https://github.com/OpenDroneMap/ODM/blob/98ffccaf49303c5d49a3eff40f693238a71bef99/stages/odm_georeferencing.py#L192 The reference alignment file is quite large (2.5G). Is it the problem ?

ODM version is 3.0.4 from latest docker image

Thanks

pierotofy commented 1 year ago

Make sure the GeoTIFF is a single-band, elevation DEM, not an orthophoto. 🙏