mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-26 21:17:29 +02:00
66 lines
1.9 KiB
Python
66 lines
1.9 KiB
Python
__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",
|
|
),
|
|
]
|