RGB edge inpainting

pull/1640/head
Piero Toffanin 2023-04-28 12:57:27 -04:00
rodzic f27b611c43
commit 8c0e1b3173
3 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -242,7 +242,7 @@ externalproject_add(dem2points
externalproject_add(odm_orthophoto
DEPENDS opencv
GIT_REPOSITORY https://github.com/OpenDroneMap/odm_orthophoto.git
GIT_TAG 290
GIT_TAG 314
PREFIX ${SB_BINARY_DIR}/odm_orthophoto
SOURCE_DIR ${SB_SOURCE_DIR}/odm_orthophoto
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${SB_INSTALL_DIR}

Wyświetl plik

@ -1 +1 @@
3.1.3
3.1.4

Wyświetl plik

@ -41,7 +41,8 @@ class ODMOrthoPhotoStage(types.ODM_Stage):
'corners': tree.odm_orthophoto_corners,
'res': resolution,
'bands': '',
'depth_idx': ''
'depth_idx': '',
'inpaint': ''
}
models = []
@ -79,12 +80,15 @@ class ODMOrthoPhotoStage(types.ODM_Stage):
else:
models.append(os.path.join(base_dir, model_file))
# Perform edge inpainting on RGB datasets
kwargs['inpaint'] = "-inpaintThreshold 1.0"
kwargs['models'] = ','.join(map(double_quote, models))
# run odm_orthophoto
system.run('"{odm_ortho_bin}" -inputFiles {models} '
'-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
geotiffcreated = False