[nodes] SfMTransform, SfMTransfer, SfMAlignment expose the same output params than the StructureFromMotion node

This commit is contained in:
Fabien Castan 2020-06-29 13:59:53 +02:00
parent 082f9b5843
commit 21fa9167ae
5 changed files with 39 additions and 12 deletions

View file

@ -1,7 +1,9 @@
__version__ = "1.0"
__version__ = "2.0"
from meshroom.core import desc
import os.path
class SfMAlignment(desc.CommandLineNode):
commandLine = 'aliceVision_utils_sfmAlignment {allParams}'
@ -107,9 +109,16 @@ The alignment can be based on:
outputs = [
desc.File(
name='output',
label='Output',
description='''Aligned SfMData file .''',
value=desc.Node.internalFolder + 'alignedSfM.abc',
label='Output SfMData File',
description='SfMData file.',
value=lambda attr: desc.Node.internalFolder + (os.path.splitext(os.path.basename(attr.node.input.value))[0] or 'sfmData') + '.abc',
uid=[],
),
desc.File(
name='outputViewsAndPoses',
label='Output Poses',
description='''Path to the output sfmdata file with cameras (views and poses).''',
value=desc.Node.internalFolder + 'cameras.sfm',
uid=[],
),
]