From ea0f674f1fdd757b48040889ea37331eb9bd406b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Thu, 19 Sep 2024 11:27:05 +0200 Subject: [PATCH] [pipelines] Add distortion export for templates without calibration --- .../cameraTrackingWithoutCalibration.mg | 16 +++++++++++++++- .../nodalCameraTrackingWithoutCalibration.mg | 17 ++++++++++++++++- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/meshroom/pipelines/cameraTrackingWithoutCalibration.mg b/meshroom/pipelines/cameraTrackingWithoutCalibration.mg index a7afc920ad..63f05ff608 100644 --- a/meshroom/pipelines/cameraTrackingWithoutCalibration.mg +++ b/meshroom/pipelines/cameraTrackingWithoutCalibration.mg @@ -10,6 +10,7 @@ "DepthMap": "5.0", "DepthMapFilter": "4.0", "ExportAnimatedCamera": "2.0", + "ExportDistortion": "1.0", "FeatureExtraction": "1.3", "FeatureMatching": "2.0", "ImageMatching": "2.0", @@ -113,6 +114,19 @@ "color": "#80766f" } }, + "ExportDistortion_1": { + "nodeType": "ExportDistortion", + "position": [ + 1800, + 200 + ], + "inputs": { + "input": "{ExportAnimatedCamera_1.input}" + }, + "internalInputs": { + "color": "#80766f" + } + }, "FeatureExtraction_1": { "nodeType": "FeatureExtraction", "position": [ @@ -341,7 +355,7 @@ "{ExportAnimatedCamera_1.output}", "{Texturing_1.output}", "{ScenePreview_1.output}", - "" + "{ExportDistortion_1.output}" ] } }, diff --git a/meshroom/pipelines/nodalCameraTrackingWithoutCalibration.mg b/meshroom/pipelines/nodalCameraTrackingWithoutCalibration.mg index dbe89928d9..56acfbb0d0 100644 --- a/meshroom/pipelines/nodalCameraTrackingWithoutCalibration.mg +++ b/meshroom/pipelines/nodalCameraTrackingWithoutCalibration.mg @@ -7,6 +7,7 @@ "CameraInit": "11.0", "ConvertSfMFormat": "2.0", "ExportAnimatedCamera": "2.0", + "ExportDistortion": "1.0", "FeatureExtraction": "1.3", "FeatureMatching": "2.0", "ImageMatching": "2.0", @@ -60,6 +61,19 @@ "color": "#80766f" } }, + "ExportDistortion_1": { + "nodeType": "ExportDistortion", + "position": [ + 1600, + 0 + ], + "inputs": { + "input": "{ExportAnimatedCamera_1.input}" + }, + "internalInputs": { + "color": "#80766f" + } + }, "FeatureExtraction_1": { "nodeType": "FeatureExtraction", "position": [ @@ -145,7 +159,8 @@ "inputs": { "inputFiles": [ "{ExportAnimatedCamera_1.output}", - "{ScenePreview_1.output}" + "{ScenePreview_1.output}", + "{ExportDistortion_1.output}" ] } },