Skip to content

Commit 602b5dd

Browse files
author
Fabien Servant
committed
Global Rotation Estimation node
1 parent 88f9d4b commit 602b5dd

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
__version__ = "2.0"
2+
3+
from meshroom.core import desc
4+
from meshroom.core.utils import DESCRIBER_TYPES, VERBOSE_LEVEL
5+
6+
7+
class GlobalRotationEstimating(desc.AVCommandLineNode):
8+
commandLine = 'aliceVision_globalRotationEstimating {allParams}'
9+
10+
category = 'Sparse Reconstruction'
11+
documentation = '''
12+
'''
13+
14+
inputs = [
15+
desc.File(
16+
name="input",
17+
label="SfMData",
18+
description="SfMData file.",
19+
value="",
20+
),
21+
desc.File(
22+
name="tracksFilename",
23+
label="Tracks File",
24+
description="Tracks file.",
25+
value="",
26+
),
27+
desc.File(
28+
name="pairs",
29+
label="Pairs File",
30+
description="Information on pairs.",
31+
value="",
32+
),
33+
desc.ChoiceParam(
34+
name="rotationAveragingMethod",
35+
label="Rotation Averaging Method",
36+
description="Method for rotation averaging:\n"
37+
" - L1 minimization\n"
38+
" - L2 minimization",
39+
values=["L1_minimization", "L2_minimization"],
40+
value="L2_minimization",
41+
),
42+
desc.FloatParam(
43+
name="angularTolerance",
44+
label="Angular tolerance",
45+
description="Angular (in degrees) tolerance for a given triplet",
46+
value=5.0,
47+
range=(0.0, 180.0, 1.0),
48+
),
49+
50+
desc.ChoiceParam(
51+
name="verboseLevel",
52+
label="Verbose Level",
53+
description="Verbosity level (fatal, error, warning, info, debug, trace).",
54+
values=VERBOSE_LEVEL,
55+
value="info",
56+
),
57+
]
58+
59+
outputs = [
60+
desc.File(
61+
name="output",
62+
label="SfMData",
63+
description="Path to the output SfMData file.",
64+
value=desc.Node.internalFolder + "sfm.abc",
65+
),
66+
]

0 commit comments

Comments
 (0)