[nodes] Add Global Rotation Estimating node

This commit is contained in:
Candice Bentéjac 2024-11-29 11:53:24 +01:00
parent e800cd4e31
commit 5a294feae7

View 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",
),
]