Skip to content

Commit 899e7a6

Browse files
author
Fabien Servant
committedMar 11, 2025
Injecting survey points
1 parent 50af477 commit 899e7a6

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
 

‎meshroom/nodes/aliceVision/ConvertSfMFormat.py

+6
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ class ConvertSfMFormat(desc.AVCommandLineNode):
8080
description="Export observations.",
8181
value=True,
8282
),
83+
desc.BoolParam(
84+
name="surveys",
85+
label="Surveys",
86+
description="Export surveys.",
87+
value=True,
88+
),
8389
desc.ChoiceParam(
8490
name="verboseLevel",
8591
label="Verbose Level",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
__version__ = "1.0"
2+
3+
from meshroom.core import desc
4+
from meshroom.core.utils import VERBOSE_LEVEL
5+
6+
import json
7+
8+
class SfMSurveyInjecting(desc.AVCommandLineNode):
9+
10+
commandLine = "aliceVision_sfmSurveyInjecting {allParams}"
11+
size = desc.DynamicNodeSize("input")
12+
13+
category = "Utils"
14+
documentation = """
15+
Use a JSON file to inject survey measurements inside the SfMData.
16+
"""
17+
18+
inputs = [
19+
desc.File(
20+
name="input",
21+
label="SfMData",
22+
description="Input SfMData file.",
23+
value="",
24+
),
25+
desc.File(
26+
name="surveyFilename",
27+
label="Survey",
28+
description="Input JSON file containing the survey.",
29+
value="",
30+
),
31+
desc.ChoiceParam(
32+
name="verboseLevel",
33+
label="Verbose Level",
34+
description="Verbosity level (fatal, error, warning, info, debug, trace).",
35+
values=VERBOSE_LEVEL,
36+
value="info",
37+
),
38+
]
39+
40+
outputs = [
41+
desc.File(
42+
name="output",
43+
label="SfMData",
44+
description="Path to the output SfM file.",
45+
value="{nodeCacheFolder}/sfmData.abc",
46+
),
47+
]

0 commit comments

Comments
 (0)