using only the needed textures

Former-commit-id: 98d3543466
pull/1161/head
edgarriba 2015-12-04 14:17:29 +00:00
rodzic bd1254a6e9
commit a7128b6bf4
1 zmienionych plików z 7 dodań i 6 usunięć

Wyświetl plik

@ -40,7 +40,8 @@ class ODMTexturingCell(ecto.Cell):
'bin': context.odm_modules_path, 'bin': context.odm_modules_path,
'out_dir': odm_texturing, 'out_dir': odm_texturing,
'bundle': io.join_paths(project_path,'opensfm/bundle_r000.out'), 'bundle': io.join_paths(project_path,'opensfm/bundle_r000.out'),
'imgs_list': io.join_paths(project_path, 'opensfm/image_list.txt'), 'imgs_path': io.join_paths(project_path, 'images_resize'),
'imgs_list': io.join_paths(project_path, 'opensfm/list_r000.out'),
'model': io.join_paths(odm_meshing, 'odm_mesh.ply'), 'model': io.join_paths(odm_meshing, 'odm_mesh.ply'),
'log': io.join_paths(odm_texturing, 'odm_texturing_log.txt'), 'log': io.join_paths(odm_texturing, 'odm_texturing_log.txt'),
'bsize': str(args['resize_to']), 'bsize': str(args['resize_to']),
@ -49,11 +50,11 @@ class ODMTexturingCell(ecto.Cell):
} }
# run texturing binary # run texturing binary
system.run('{bin}/odm_texturing -bundleFile {bundle} ' \ system.run('{bin}/odm_texturing -bundleFile {bundle} ' \
'-imagesListPath {imgs_list} -inputModelPath {model} ' \ '-imagesPath {imgs_path} -imagesListPath {imgs_list} ' \
'-outputFolder {out_dir}/ -textureResolution {res} ' \ '-inputModelPath {model} -outputFolder {out_dir}/ ' \
'-bundleResizedTo {bsize} -textureWithSize {wsize} ' \ '-textureResolution {res} -bundleResizedTo {bsize} ' \
'-logFile {log}'.format(**kwargs)) '-textureWithSize {wsize} -logFile {log}'.format(**kwargs))
else: else:
log.ODM_WARNING('Found a valid odm texture file in: %s' % output_file) log.ODM_WARNING('Found a valid odm texture file in: %s' % output_file)