kopia lustrzana https://github.com/OpenDroneMap/ODM
commit
c34f227157
|
@ -242,7 +242,7 @@ externalproject_add(dem2points
|
||||||
externalproject_add(odm_orthophoto
|
externalproject_add(odm_orthophoto
|
||||||
DEPENDS opencv
|
DEPENDS opencv
|
||||||
GIT_REPOSITORY https://github.com/OpenDroneMap/odm_orthophoto.git
|
GIT_REPOSITORY https://github.com/OpenDroneMap/odm_orthophoto.git
|
||||||
GIT_TAG 290
|
GIT_TAG 314
|
||||||
PREFIX ${SB_BINARY_DIR}/odm_orthophoto
|
PREFIX ${SB_BINARY_DIR}/odm_orthophoto
|
||||||
SOURCE_DIR ${SB_SOURCE_DIR}/odm_orthophoto
|
SOURCE_DIR ${SB_SOURCE_DIR}/odm_orthophoto
|
||||||
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${SB_INSTALL_DIR}
|
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${SB_INSTALL_DIR}
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
3.1.3
|
3.1.4
|
||||||
|
|
|
@ -41,7 +41,8 @@ class ODMOrthoPhotoStage(types.ODM_Stage):
|
||||||
'corners': tree.odm_orthophoto_corners,
|
'corners': tree.odm_orthophoto_corners,
|
||||||
'res': resolution,
|
'res': resolution,
|
||||||
'bands': '',
|
'bands': '',
|
||||||
'depth_idx': ''
|
'depth_idx': '',
|
||||||
|
'inpaint': ''
|
||||||
}
|
}
|
||||||
|
|
||||||
models = []
|
models = []
|
||||||
|
@ -79,12 +80,16 @@ class ODMOrthoPhotoStage(types.ODM_Stage):
|
||||||
else:
|
else:
|
||||||
models.append(os.path.join(base_dir, model_file))
|
models.append(os.path.join(base_dir, model_file))
|
||||||
|
|
||||||
|
# Perform edge inpainting on georeferenced RGB datasets
|
||||||
|
if reconstruction.is_georeferenced():
|
||||||
|
kwargs['inpaint'] = "-inpaintThreshold 1.0"
|
||||||
|
|
||||||
kwargs['models'] = ','.join(map(double_quote, models))
|
kwargs['models'] = ','.join(map(double_quote, models))
|
||||||
|
|
||||||
# run odm_orthophoto
|
# run odm_orthophoto
|
||||||
system.run('"{odm_ortho_bin}" -inputFiles {models} '
|
system.run('"{odm_ortho_bin}" -inputFiles {models} '
|
||||||
'-logFile "{log}" -outputFile "{ortho}" -resolution {res} -verbose '
|
'-logFile "{log}" -outputFile "{ortho}" -resolution {res} -verbose '
|
||||||
'-outputCornerFile "{corners}" {bands} {depth_idx}'.format(**kwargs))
|
'-outputCornerFile "{corners}" {bands} {depth_idx} {inpaint}'.format(**kwargs), env_vars={'OMP_NUM_THREADS': args.max_concurrency})
|
||||||
|
|
||||||
# Create georeferenced GeoTiff
|
# Create georeferenced GeoTiff
|
||||||
geotiffcreated = False
|
geotiffcreated = False
|
||||||
|
|
Ładowanie…
Reference in New Issue