mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-05 12:21:59 +02:00
[nodes] SfMTransform, SfMTransfer, SfMAlignment expose the same output params than the StructureFromMotion node
This commit is contained in:
parent
082f9b5843
commit
21fa9167ae
5 changed files with 39 additions and 12 deletions
|
@ -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=[],
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue