Skip to content

Commit 3f25e36

Browse files
authored
Merge pull request #2266 from alicevision/dev/nodalTrackingCalib
[pipelines] Add image segmentation to the Nodal Camera Tracking template
2 parents 360efb3 + ae44666 commit 3f25e36

File tree

1 file changed

+58
-11
lines changed

1 file changed

+58
-11
lines changed

meshroom/pipelines/nodalCameraTracking.mg

Lines changed: 58 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55
"fileVersion": "1.1",
66
"template": true,
77
"nodesVersions": {
8-
"ScenePreview": "2.0",
9-
"ExportAnimatedCamera": "2.0",
10-
"FeatureMatching": "2.0",
11-
"NodalSfM": "1.0",
12-
"CameraInit": "9.0",
138
"TracksBuilding": "1.0",
9+
"ImageSegmentation": "1.0",
1410
"FeatureExtraction": "1.3",
15-
"RelativePoseEstimating": "1.0",
16-
"Publish": "1.3",
11+
"ScenePreview": "2.0",
1712
"ImageMatching": "2.0",
18-
"ConvertSfMFormat": "2.0"
13+
"CameraInit": "9.0",
14+
"NodalSfM": "1.0",
15+
"ConvertSfMFormat": "2.0",
16+
"Publish": "1.3",
17+
"ExportAnimatedCamera": "2.0",
18+
"FeatureMatching": "2.0",
19+
"RelativePoseEstimating": "1.0"
1920
}
2021
},
2122
"graph": {
@@ -30,6 +31,9 @@
3031
"featuresFolders": [
3132
"{FeatureExtraction_1.output}"
3233
]
34+
},
35+
"internalInputs": {
36+
"color": "#80766f"
3337
}
3438
},
3539
"FeatureExtraction_1": {
@@ -39,16 +43,23 @@
3943
0
4044
],
4145
"inputs": {
42-
"input": "{CameraInit_1.output}"
46+
"input": "{ImageSegmentation_1.input}",
47+
"masksFolder": "{ImageSegmentation_1.output}"
48+
},
49+
"internalInputs": {
50+
"color": "#80766f"
4351
}
4452
},
4553
"CameraInit_1": {
4654
"nodeType": "CameraInit",
4755
"position": [
48-
0,
56+
-200,
4957
0
5058
],
51-
"inputs": {}
59+
"inputs": {},
60+
"internalInputs": {
61+
"color": "#80766f"
62+
}
5263
},
5364
"FeatureMatching_1": {
5465
"nodeType": "FeatureMatching",
@@ -61,6 +72,9 @@
6172
"featuresFolders": "{ImageMatching_1.featuresFolders}",
6273
"imagePairsList": "{ImageMatching_1.output}",
6374
"describerTypes": "{FeatureExtraction_1.describerTypes}"
75+
},
76+
"internalInputs": {
77+
"color": "#80766f"
6478
}
6579
},
6680
"TracksBuilding_1": {
@@ -75,6 +89,9 @@
7589
"matchesFolders": [
7690
"{FeatureMatching_1.output}"
7791
]
92+
},
93+
"internalInputs": {
94+
"color": "#80766f"
7895
}
7996
},
8097
"RelativePoseEstimating_1": {
@@ -88,6 +105,9 @@
88105
"featuresFolders": "{TracksBuilding_1.featuresFolders}",
89106
"tracksFilename": "{TracksBuilding_1.output}",
90107
"enforcePureRotation": true
108+
},
109+
"internalInputs": {
110+
"color": "#80766f"
91111
}
92112
},
93113
"NodalSfM_1": {
@@ -101,6 +121,9 @@
101121
"featuresFolders": "{RelativePoseEstimating_1.featuresFolders}",
102122
"tracksFilename": "{RelativePoseEstimating_1.tracksFilename}",
103123
"pairs": "{RelativePoseEstimating_1.output}"
124+
},
125+
"internalInputs": {
126+
"color": "#80766f"
104127
}
105128
},
106129
"ExportAnimatedCamera_1": {
@@ -112,6 +135,9 @@
112135
"inputs": {
113136
"input": "{NodalSfM_1.output}",
114137
"exportUndistortedImages": true
138+
},
139+
"internalInputs": {
140+
"color": "#80766f"
115141
}
116142
},
117143
"ConvertSfMFormat_1": {
@@ -125,6 +151,9 @@
125151
"fileExt": "sfm",
126152
"structure": false,
127153
"observations": false
154+
},
155+
"internalInputs": {
156+
"color": "#4c594c"
128157
}
129158
},
130159
"ScenePreview_1": {
@@ -138,10 +167,14 @@
138167
"model": "{NodalSfM_1.output}",
139168
"undistortedImages": "{ExportAnimatedCamera_1.outputUndistorted}",
140169
"useMasks": false,
170+
"masks": "{ImageSegmentation_1.output}",
141171
"pointCloudParams": {
142172
"particleSize": 0.001,
143173
"particleColor": "Red"
144174
}
175+
},
176+
"internalInputs": {
177+
"color": "#4c594c"
145178
}
146179
},
147180
"Publish_1": {
@@ -156,6 +189,20 @@
156189
"{ScenePreview_1.output}"
157190
]
158191
}
192+
},
193+
"ImageSegmentation_1": {
194+
"nodeType": "ImageSegmentation",
195+
"position": [
196+
0,
197+
0
198+
],
199+
"inputs": {
200+
"input": "{CameraInit_1.output}",
201+
"maskInvert": true
202+
},
203+
"internalInputs": {
204+
"color": "#80766f"
205+
}
159206
}
160207
}
161208
}

0 commit comments

Comments
 (0)