mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-01 15:58:36 +02:00
New nodes for panorama to sfm
This commit is contained in:
parent
11333e3281
commit
a5a89d64ed
2 changed files with 91 additions and 0 deletions
42
meshroom/nodes/aliceVision/SfMToRig.py
Normal file
42
meshroom/nodes/aliceVision/SfMToRig.py
Normal file
|
@ -0,0 +1,42 @@
|
|||
__version__ = "1.0"
|
||||
|
||||
from meshroom.core import desc
|
||||
import os.path
|
||||
|
||||
class SfmToRig(desc.AVCommandLineNode):
|
||||
commandLine = 'aliceVision_sfmToRig {allParams}'
|
||||
size = desc.DynamicNodeSize('input')
|
||||
|
||||
category = 'Utils'
|
||||
documentation = '''
|
||||
Assumes input sfm data describes a set of cameras capturing a scene at a common time. Transform the set of cameras into a rig of cameras.
|
||||
'''
|
||||
|
||||
inputs = [
|
||||
desc.File(
|
||||
name="input",
|
||||
label="SfMData",
|
||||
description="Input 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="output",
|
||||
label="SfMData",
|
||||
description="Path to the output SfM file (in SfMData format).",
|
||||
value=lambda attr: desc.Node.internalFolder + "sfmData.sfm",
|
||||
uid=[],
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue