Skip to content

Commit

Permalink
Merge pull request #2524 from alicevision/dev/alignLidar
Browse files Browse the repository at this point in the history
add lineup to sfmTransform
  • Loading branch information
fabiencastan committed Sep 9, 2024
2 parents 6cdbd46 + 221ba1a commit cd3c5b5
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions meshroom/nodes/aliceVision/SfMTransform.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SfMTransform(desc.AVCommandLineNode):
* from_markers: Align specific markers to custom coordinates
* from_gps: Align with the gps positions from the image metadata
* align_ground: Detect ground level and align to it
* from_lineup: Align using a camera pose (json line up file), tracks and a mesh
'''

inputs = [
Expand All @@ -47,12 +47,37 @@ class SfMTransform(desc.AVCommandLineNode):
" - from_center_camera: Defines the coordinate system from the camera closest to the center of the reconstruction.\n"
" - from_markers: Defines the coordinate system from markers specified by --markers.\n"
" - from_gps: Defines coordinate system from GPS metadata.\n"
" - from_lineup: Defines coordinate system using lineup json file.\n"
" - align_ground: Defines ground level from the point cloud density. It assumes that the scene is oriented.",
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", "align_ground"],
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", "from_lineup", "align_ground"],
exclusive=True,
uid=[0],
),
desc.File(
name="lineUp",
label="Line Up File",
description="LineUp Json file.",
value="",
uid=[0],
enabled=lambda node: node.method.value == "from_lineup"
),
desc.File(
name="tracksFile",
label="Tracks File",
description="Tracks file for lineup.",
value="",
uid=[0],
enabled=lambda node: node.method.value == "from_lineup"
),
desc.File(
name="objectFile",
label="Mesh File",
description="Mesh file for lineup.",
value="",
uid=[0],
enabled=lambda node: node.method.value == "from_lineup"
),
desc.StringParam(
name="transformation",
label="Transformation",
Expand Down

0 comments on commit cd3c5b5

Please sign in to comment.