Skip to content

Commit 09720f6

Browse files
authored
Merge pull request #2696 from alicevision/dev/surveyInjecting
Node to inject survey points in the SFM
2 parents 84769a0 + d8f3a25 commit 09720f6

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

meshroom/core/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"Log3G10 REDWideGamutRGB", "Linear Venice S-Gamut3.Cine", "S-Log3 Venice S-Gamut3.Cine", "no_conversion"]
66

77
DESCRIBER_TYPES = ["sift", "sift_float", "sift_upright", "dspsift", "akaze", "akaze_liop", "akaze_mldb", "cctag3",
8-
"cctag4", "sift_ocv", "akaze_ocv", "tag16h5", "unknown"]
8+
"cctag4", "sift_ocv", "akaze_ocv", "tag16h5", "survey", "unknown"]
99

1010
EXR_STORAGE_DATA_TYPE = ["float", "half", "halfFinite", "auto"]
1111

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)