kopia lustrzana https://github.com/OpenDroneMap/ODM
initial draft of dem-blend
rodzic
af552c15e7
commit
9f1bed5aaa
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env python3
|
||||
# Authors: Piero Toffanin, Stephen Mather
|
||||
# License: AGPLv3
|
||||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.path.join("..", "..", os.path.dirname(__file__)))
|
||||
|
||||
import argparse
|
||||
import multiprocessing
|
||||
from opendm.dem import merge
|
||||
|
||||
parser = argparse.ArgumentParser(description='Merge and blend DEMs using OpenDroneMap\'s approach.')
|
||||
parser.add_argument('input_dems',
|
||||
type=str,
|
||||
help='Path to input dems (.tif)')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
if not os.path.exists(args.input_dems):
|
||||
print("%s does not exist" % args.input_dems)
|
||||
exit(1)
|
||||
|
||||
outdir = os.path.dirname(args.input_dems)
|
||||
output_dem = os.path.join(outdir, 'merged_blended_dem.tif'
|
||||
|
||||
merge.euclidean_merge_dems(args.input_dems
|
||||
,output_dem=output_dem
|
||||
#,max_workers=multiprocessing.cpu_count()
|
||||
)
|
Ładowanie…
Reference in New Issue