I have completed most of the steps to create DEM from a stereo pair of images. The images are 188x1800 pixels at 5 meter resolution (UTM projection). But the final step fails with an error about malloc. And indeed the predicted Elevation map size is HUGE: 40 million x 200 million pixels. I can’t understand where that output size comes from. All preparatory steps completed quickly and produced “normal” sized rasters.
Any tips would be appreciated.
Here’s the command and output:
micha@tp480:GIS$ otbcli_DisparityMapToElevationMap \
> -io.in ${GIS_dir}BlockMatching_disparity.tif \
> -io.left ${GIS_dir}evrona_band_5.tif -io.right ${GIS_dir}evrona_band_6.tif \
> -io.lgrid ${GIS_dir}GridBasedImageResampling_left.tif -io.rgrid ${GIS_dir}GridBasedImageResampling_right.tif \
> -io.out ${GIS_dir}dem.tif float -elev.dem $SRTM_dir -ram 4196
2019-11-28 00:24:24 (INFO): Default RAM limit for OTB is 128 MB
2019-11-28 00:24:24 (INFO): GDAL maximum cache size is 790 MB
2019-11-28 00:24:24 (INFO): OTB will use at most 8 threads
2019-11-28 00:24:24 (INFO): No kwl metadata found in file ../GIS/BlockMatching_disparity.tif
2019-11-28 00:24:24 (INFO): No kwl metadata found in file ../GIS/evrona_band_5.tif
2019-11-28 00:24:24 (INFO): No kwl metadata found in file ../GIS/evrona_band_6.tif
2019-11-28 00:24:24 (INFO): No kwl metadata found in file ../GIS/GridBasedImageResampling_left.tif
2019-11-28 00:24:24 (INFO): No kwl metadata found in file ../GIS/GridBasedImageResampling_right.tif
2019-11-28 00:24:24 (INFO): Elevation management: setting default height above ellipsoid to 0 meters
2019-11-28 00:24:24 (INFO): Elevation management: using DEM directory (../SRTM/)
2019-11-28 00:24:24 (INFO): Elevation map origin : [691983,3.28782e+06]
2019-11-28 00:24:24 (INFO): Elevation map size : [39733808,200375083]
2019-11-28 00:24:24 (INFO): Estimated memory for full processing: 1.10248e+13MB (avail.: 4196 MB), optimal image partitioning: 2627454039 blocks
2019-11-28 00:24:29 (FATAL): Caught std::exception during application execution: std::bad_alloc
Thanks, Micha