Skip to content

Commit 55895cf

Browse files
committed
[pipelines] Add distortion calibration to the nodal camtrack template
1 parent 279b890 commit 55895cf

File tree

1 file changed

+86
-13
lines changed

1 file changed

+86
-13
lines changed

meshroom/pipelines/nodalCameraTracking.mg

Lines changed: 86 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
{
22
"header": {
33
"pipelineVersion": "2.2",
4-
"releaseVersion": "2023.3.0",
4+
"releaseVersion": "2024.1.0-develop",
55
"fileVersion": "1.1",
66
"template": true,
77
"nodesVersions": {
8-
"TracksBuilding": "1.0",
9-
"ImageSegmentation": "1.0",
8+
"DistortionCalibration": "3.0",
109
"FeatureExtraction": "1.3",
1110
"ScenePreview": "2.0",
12-
"ImageMatching": "2.0",
13-
"CameraInit": "9.0",
14-
"NodalSfM": "1.0",
15-
"ConvertSfMFormat": "2.0",
16-
"Publish": "1.3",
17-
"ExportAnimatedCamera": "2.0",
1811
"FeatureMatching": "2.0",
19-
"RelativePoseEstimating": "1.0"
12+
"RelativePoseEstimating": "1.0",
13+
"ExportAnimatedCamera": "2.0",
14+
"ConvertSfMFormat": "2.0",
15+
"ImageSegmentation": "1.0",
16+
"NodalSfM": "1.0",
17+
"ExportDistortion": "1.0",
18+
"CameraInit": "9.0",
19+
"CheckerboardDetection": "1.0",
20+
"ImageMatching": "2.0",
21+
"TracksBuilding": "1.0",
22+
"ApplyCalibration": "1.0",
23+
"Publish": "1.3"
2024
}
2125
},
2226
"graph": {
@@ -43,7 +47,7 @@
4347
0
4448
],
4549
"inputs": {
46-
"input": "{ImageSegmentation_1.input}",
50+
"input": "{ApplyCalibration_1.output}",
4751
"masksFolder": "{ImageSegmentation_1.output}"
4852
},
4953
"internalInputs": {
@@ -186,15 +190,16 @@
186190
"inputs": {
187191
"inputFiles": [
188192
"{ExportAnimatedCamera_1.output}",
189-
"{ScenePreview_1.output}"
193+
"{ScenePreview_1.output}",
194+
"{ExportDistortion_1.output}"
190195
]
191196
}
192197
},
193198
"ImageSegmentation_1": {
194199
"nodeType": "ImageSegmentation",
195200
"position": [
196201
0,
197-
0
202+
200
198203
],
199204
"inputs": {
200205
"input": "{CameraInit_1.output}",
@@ -203,6 +208,74 @@
203208
"internalInputs": {
204209
"color": "#80766f"
205210
}
211+
},
212+
"CheckerboardDetection_1": {
213+
"nodeType": "CheckerboardDetection",
214+
"position": [
215+
-400,
216+
-160
217+
],
218+
"inputs": {
219+
"input": "{CameraInit_2.output}",
220+
"useNestedGrids": true,
221+
"exportDebugImages": true
222+
},
223+
"internalInputs": {
224+
"color": "#302e2e"
225+
}
226+
},
227+
"DistortionCalibration_1": {
228+
"nodeType": "DistortionCalibration",
229+
"position": [
230+
-200,
231+
-160
232+
],
233+
"inputs": {
234+
"input": "{CheckerboardDetection_1.input}",
235+
"checkerboards": "{CheckerboardDetection_1.output}"
236+
},
237+
"internalInputs": {
238+
"color": "#302e2e"
239+
}
240+
},
241+
"ExportDistortion_1": {
242+
"nodeType": "ExportDistortion",
243+
"position": [
244+
0,
245+
-160
246+
],
247+
"inputs": {
248+
"input": "{DistortionCalibration_1.output}"
249+
},
250+
"internalInputs": {
251+
"color": "#302e2e"
252+
}
253+
},
254+
"ApplyCalibration_1": {
255+
"nodeType": "ApplyCalibration",
256+
"position": [
257+
0,
258+
0
259+
],
260+
"inputs": {
261+
"input": "{CameraInit_1.output}",
262+
"calibration": "{DistortionCalibration_1.output}"
263+
},
264+
"internalInputs": {
265+
"color": "#80766f"
266+
}
267+
},
268+
"CameraInit_2": {
269+
"nodeType": "CameraInit",
270+
"position": [
271+
-600,
272+
-160
273+
],
274+
"inputs": {},
275+
"internalInputs": {
276+
"label": "CameraInitLensGrid",
277+
"color": "#302e2e"
278+
}
206279
}
207280
}
208281
}

0 commit comments

Comments
 (0)