mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +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
49
meshroom/nodes/aliceVision/SfMMerge.py
Normal file
49
meshroom/nodes/aliceVision/SfMMerge.py
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
__version__ = "1.0"
|
||||||
|
|
||||||
|
from meshroom.core import desc
|
||||||
|
import os.path
|
||||||
|
|
||||||
|
class SfmMerge(desc.AVCommandLineNode):
|
||||||
|
commandLine = 'aliceVision_sfmMerge {allParams}'
|
||||||
|
size = desc.DynamicNodeSize('firstinput')
|
||||||
|
|
||||||
|
category = 'Utils'
|
||||||
|
documentation = '''
|
||||||
|
Merge two sfmData into a single one. Fails if some uid is shared among them
|
||||||
|
'''
|
||||||
|
|
||||||
|
inputs = [
|
||||||
|
desc.File(
|
||||||
|
name="firstinput",
|
||||||
|
label="SfMData",
|
||||||
|
description="First Input SfMData file.",
|
||||||
|
value="",
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
desc.File(
|
||||||
|
name="secondinput",
|
||||||
|
label="SfMData",
|
||||||
|
description="Second 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=[],
|
||||||
|
),
|
||||||
|
]
|
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