-
-
Notifications
You must be signed in to change notification settings - Fork 872
Expand file tree
/
Copy pathDepthMapTracksInjecting.py
More file actions
55 lines (48 loc) · 1.62 KB
/
DepthMapTracksInjecting.py
File metadata and controls
55 lines (48 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
__version__ = "1.0"
from meshroom.core import desc
from meshroom.core.utils import VERBOSE_LEVEL
class DepthMapTracksInjecting(desc.AVCommandLineNode):
'''
Inject depth information from depth maps into feature tracks.
For each feature track, the corresponding depth value from the associated depth map is
looked up and stored alongside the 2D observation. This enriched track information can
improve the accuracy of downstream triangulation and bundle adjustment steps, as the
depth constraint provides an additional per-observation measurement.
'''
commandLine = 'aliceVision_depthmapTracksInjecting {allParams}'
category = 'Utils'
inputs = [
desc.File(
name="input",
label="Input SfMData",
description="Input SfMData file.",
value="",
),
desc.File(
name="tracksFilename",
label="Tracks File",
description="Tracks file.",
value="",
),
desc.File(
name="depthSource",
label="Depth Source",
description="Directory containing depthMaps",
value="",
),
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="Output Tracks File",
description="Output Tracks File with updated depth",
value="{nodeCacheFolder}/tracks.json",
),
]