Merge pull request #1974 from alicevision/dev/splitReconstructed

Node to split reconstructed and not reconstructed cameras
This commit is contained in:
Loïc Vital 2023-06-27 15:26:58 +02:00 committed by GitHub
commit 24fc217ec6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,51 @@
__version__ = "1.0"
from meshroom.core import desc
class SfMSplitReconstructed(desc.AVCommandLineNode):
commandLine = 'aliceVision_sfmSplitReconstructed {allParams}'
size = desc.DynamicNodeSize('input')
category = 'Utils'
documentation = '''
This nodes takes a sfmData file and split it in two
- One sfmData with the reconstructed views
- One sfmData with the non reconstructed views
'''
inputs = [
desc.File(
name='input',
label='Input',
description='''SfMData file .''',
value='',
uid=[0],
),
desc.ChoiceParam(
name='verboseLevel',
label='Verbose Level',
description='''verbosity level (fatal, error, warning, info, debug, trace).''',
value='info',
values=['fatal', 'error', 'warning', 'info', 'debug', 'trace'],
exclusive=True,
uid=[],
),
]
outputs = [
desc.File(
name='reconstructedOutput',
label='Reconstructed SfMData File',
description='SfMData file with reconstructed cameras',
value=desc.Node.internalFolder + 'sfmReconstructed.abc',
uid=[],
),
desc.File(
name='notReconstructedOutput',
label='Not Reconstructed SfMData File',
description='SfMData file with non reconstructed cameras',
value=desc.Node.internalFolder + 'sfmNonReconstructed.abc',
uid=[],
)
]