mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +02:00
[nodes] Add Global Rotation Estimating node
This commit is contained in:
parent
e800cd4e31
commit
5a294feae7
1 changed files with 66 additions and 0 deletions
66
meshroom/nodes/aliceVision/GlobalRotationEstimating.py
Normal file
66
meshroom/nodes/aliceVision/GlobalRotationEstimating.py
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
__version__ = "1.0"
|
||||||
|
|
||||||
|
from meshroom.core import desc
|
||||||
|
from meshroom.core.utils import VERBOSE_LEVEL
|
||||||
|
|
||||||
|
|
||||||
|
class GlobalRotationEstimating(desc.AVCommandLineNode):
|
||||||
|
commandLine = "aliceVision_globalRotationEstimating {allParams}"
|
||||||
|
|
||||||
|
category = "Sparse Reconstruction"
|
||||||
|
documentation = '''
|
||||||
|
Estimate the global rotation given tracks.
|
||||||
|
'''
|
||||||
|
|
||||||
|
inputs = [
|
||||||
|
desc.File(
|
||||||
|
name="input",
|
||||||
|
label="SfMData",
|
||||||
|
description="SfMData file.",
|
||||||
|
value="",
|
||||||
|
),
|
||||||
|
desc.File(
|
||||||
|
name="tracksFilename",
|
||||||
|
label="Tracks File",
|
||||||
|
description="Tracks file.",
|
||||||
|
value="",
|
||||||
|
),
|
||||||
|
desc.File(
|
||||||
|
name="pairs",
|
||||||
|
label="Pairs File",
|
||||||
|
description="Information on pairs.",
|
||||||
|
value="",
|
||||||
|
),
|
||||||
|
desc.ChoiceParam(
|
||||||
|
name="rotationAveragingMethod",
|
||||||
|
label="Rotation Averaging Method",
|
||||||
|
description="Method for rotation averaging:\n"
|
||||||
|
" - L1 minimization\n"
|
||||||
|
" - L2 minimization",
|
||||||
|
values=["L1_minimization", "L2_minimization"],
|
||||||
|
value="L2_minimization",
|
||||||
|
),
|
||||||
|
desc.FloatParam(
|
||||||
|
name="angularTolerance",
|
||||||
|
label="Angular Tolerance",
|
||||||
|
description="Angular (in degrees) tolerance for a given triplet.",
|
||||||
|
value=5.0,
|
||||||
|
range=(0.0, 180.0, 1.0),
|
||||||
|
),
|
||||||
|
desc.ChoiceParam(
|
||||||
|
name="verboseLevel",
|
||||||
|
label="Verbose Level",
|
||||||
|
description="Verbosity level (fatal, error, warning, info, debug, trace).",
|
||||||
|
values=VERBOSE_LEVEL,
|
||||||
|
value="info",
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
desc.File(
|
||||||
|
name="output",
|
||||||
|
label="SfMData",
|
||||||
|
description="Path to the output SfMData file.",
|
||||||
|
value=desc.Node.internalFolder + "sfm.abc",
|
||||||
|
),
|
||||||
|
]
|
Loading…
Add table
Reference in a new issue