From a00a36a5ed1cd97ef88cdc59d1afdd03a69bc79a Mon Sep 17 00:00:00 2001 From: Fabien Servant Date: Tue, 4 Apr 2023 17:03:57 +0200 Subject: [PATCH 1/2] [sfmTransform] add auto mode --- meshroom/nodes/aliceVision/SfMTransform.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meshroom/nodes/aliceVision/SfMTransform.py b/meshroom/nodes/aliceVision/SfMTransform.py index 9f0e687da7..fb29373527 100644 --- a/meshroom/nodes/aliceVision/SfMTransform.py +++ b/meshroom/nodes/aliceVision/SfMTransform.py @@ -37,6 +37,7 @@ class SfMTransform(desc.AVCommandLineNode): description="Transformation method:\n" " * transformation: Apply a given transformation\n" " * manual: Apply the gizmo transformation (show the transformed input)\n" + " * auto: Using X axis of all cameras as horizon. gps north and scale if available. cameras center mean is used as origin.\n" " * auto_from_cameras: Use cameras\n" " * auto_from_cameras_x_axis: Use X axis of all cameras\n" " * auto_from_landmarks: Use landmarks\n" @@ -45,7 +46,7 @@ class SfMTransform(desc.AVCommandLineNode): " * from_markers: Align specific markers to custom coordinates\n" " * from_gps: Align with the gps positions from the image metadata", value='auto_from_landmarks', - values=['transformation', 'manual', 'auto_from_cameras', 'auto_from_cameras_x_axis', 'auto_from_landmarks', 'from_single_camera', 'from_center_camera', 'from_markers', 'from_gps'], + values=['transformation', 'manual', 'auto', 'auto_from_cameras', 'auto_from_cameras_x_axis', 'auto_from_landmarks', 'from_single_camera', 'from_center_camera', 'from_markers', 'from_gps'], exclusive=True, uid=[0], ), From 463b5729eb07437cbf485dcbda32400699464263 Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Thu, 6 Apr 2023 20:57:20 +0200 Subject: [PATCH 2/2] [nodes] SfMTransform: use auto by default --- meshroom/nodes/aliceVision/SfMTransform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshroom/nodes/aliceVision/SfMTransform.py b/meshroom/nodes/aliceVision/SfMTransform.py index fb29373527..7ae2d0f0a0 100644 --- a/meshroom/nodes/aliceVision/SfMTransform.py +++ b/meshroom/nodes/aliceVision/SfMTransform.py @@ -45,7 +45,7 @@ class SfMTransform(desc.AVCommandLineNode): " * from_center_camera: Use the center camera as the origin of the coordinate system\n" " * from_markers: Align specific markers to custom coordinates\n" " * from_gps: Align with the gps positions from the image metadata", - value='auto_from_landmarks', + value='auto', values=['transformation', 'manual', 'auto', 'auto_from_cameras', 'auto_from_cameras_x_axis', 'auto_from_landmarks', 'from_single_camera', 'from_center_camera', 'from_markers', 'from_gps'], exclusive=True, uid=[0],