mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-22 21:46:28 +02:00
[nodes] SfMAlignment: support multiple methods: views ids, pose ids, filepath pattern, specific metadata, markers ids
This commit is contained in:
parent
5decc2facd
commit
3dc6dea6c5
1 changed files with 59 additions and 0 deletions
|
@ -22,6 +22,65 @@ class SfMAlignment(desc.CommandLineNode):
|
||||||
value='',
|
value='',
|
||||||
uid=[0],
|
uid=[0],
|
||||||
),
|
),
|
||||||
|
desc.ChoiceParam(
|
||||||
|
name='method',
|
||||||
|
label='Alignment Method',
|
||||||
|
description="Alignment Method:\n"
|
||||||
|
" * from_cameras_viewid: Align cameras with same view Id\n"
|
||||||
|
" * from_cameras_poseid: Align cameras with same pose Id\n"
|
||||||
|
" * from_cameras_filepath: Align cameras with a filepath matching, using 'fileMatchingPattern'\n"
|
||||||
|
" * from_cameras_metadata: Align cameras with matching metadata, using 'metadataMatchingList'\n"
|
||||||
|
" * from_markers: Align from markers with the same Id\n",
|
||||||
|
value='from_cameras_viewid',
|
||||||
|
values=['from_cameras_viewid', 'from_cameras_poseid', 'from_cameras_filepath', 'from_cameras_metadata', 'from_markers'],
|
||||||
|
exclusive=True,
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
desc.StringParam(
|
||||||
|
name='fileMatchingPattern',
|
||||||
|
label='File Matching Pattern',
|
||||||
|
description='Matching regular expression for the "from_cameras_filepath" method. '
|
||||||
|
'You should capture specific parts of the filepath with parenthesis to define matching elements.\n'
|
||||||
|
'Some examples of patterns:\n'
|
||||||
|
' - Match the filename without extension (default value): ".*\/(.*?)\.\w{3}"\n'
|
||||||
|
' - Match the filename suffix after "_": ".*\/.*(_.*?\.\w{3})"\n'
|
||||||
|
' - Match the filename prefix before "_": ".*\/(.*?)_.*\.\w{3}"\n',
|
||||||
|
value='.*\/(.*?)\.\w{3}',
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
desc.ListAttribute(
|
||||||
|
elementDesc=desc.File(
|
||||||
|
name="metadataMatching",
|
||||||
|
label="Metadata",
|
||||||
|
description="",
|
||||||
|
value="",
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
name="metadataMatchingList",
|
||||||
|
label="Metadata Matching List",
|
||||||
|
description='List of metadata that should match to create the correspondences. If the list is empty, the default value will be used: ["Make", "Model", "Exif:BodySerialNumber", "Exif:LensSerialNumber"].',
|
||||||
|
),
|
||||||
|
desc.BoolParam(
|
||||||
|
name='applyScale',
|
||||||
|
label='Scale',
|
||||||
|
description='Apply scale transformation.',
|
||||||
|
value=True,
|
||||||
|
uid=[0]
|
||||||
|
),
|
||||||
|
desc.BoolParam(
|
||||||
|
name='applyRotation',
|
||||||
|
label='Rotation',
|
||||||
|
description='Apply rotation transformation.',
|
||||||
|
value=True,
|
||||||
|
uid=[0]
|
||||||
|
),
|
||||||
|
desc.BoolParam(
|
||||||
|
name='applyTranslation',
|
||||||
|
label='Translation',
|
||||||
|
description='Apply translation transformation.',
|
||||||
|
value=True,
|
||||||
|
uid=[0]
|
||||||
|
),
|
||||||
desc.ChoiceParam(
|
desc.ChoiceParam(
|
||||||
name='verboseLevel',
|
name='verboseLevel',
|
||||||
label='Verbose Level',
|
label='Verbose Level',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue