Skip to content

Commit

Permalink
NodalSfm new node
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien SERVANT committed Sep 21, 2023
1 parent fdeb53c commit 11f3805
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
77 changes: 77 additions & 0 deletions meshroom/nodes/aliceVision/NodalSfM.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
__version__ = "1.0"

from meshroom.core import desc


class NodalSfM(desc.AVCommandLineNode):
commandLine = 'aliceVision_nodalSfM {allParams}'
size = desc.DynamicNodeSize('input')

category = 'Sparse Reconstruction'
documentation = '''
'''

inputs = [
desc.File(
name='input',
label='SfMData',
description='SfMData file.',
value='',
uid=[0],
),
desc.ListAttribute(
elementDesc=desc.File(
name="featuresFolder",
label="Features Folder",
description="",
value="",
uid=[0],
),
name="featuresFolders",
label="Features Folders",
description="Folder(s) containing the extracted features and descriptors."
),
desc.File(
name='tracksFilename',
label='Tracks file',
description='Tracks file.',
value='',
uid=[0],
),
desc.File(
name='pairs',
label='Pairs file',
description='Information on pairs.',
value='',
uid=[0],
),
desc.ChoiceParam(
name='describerTypes',
label='Describer Types',
description='Describer types used to describe an image.',
value=['dspsift'],
values=['sift', 'sift_float', 'sift_upright', 'dspsift', 'akaze', 'akaze_liop', 'akaze_mldb', 'cctag3', 'cctag4', 'sift_ocv', 'akaze_ocv', 'tag16h5'],
exclusive=False,
uid=[0],
joinChar=',',
),
desc.ChoiceParam(
name='verboseLevel',
label='Verbose Level',
description='Verbosity level (fatal, error, warning, info, debug, trace).',
value='info',
values=['fatal', 'error', 'warning', 'info', 'debug', 'trace'],
exclusive=True,
uid=[],
)
]

outputs = [
desc.File(
name='output',
label='SfMData',
description='Path to the output sfmdata file',
value=desc.Node.internalFolder + 'sfm.abc',
uid=[],
)
]
7 changes: 7 additions & 0 deletions meshroom/nodes/aliceVision/RelativePoseEstimating.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ class RelativePoseEstimating(desc.AVCommandLineNode):
uid=[0],
joinChar=",",
),
desc.BoolParam(
name="enforcePureRotation",
label="Enforce pure rotation",
description="Enforce pure rotation as a model",
value=False,
uid=[0],
),
desc.ChoiceParam(
name="verboseLevel",
label="Verbose Level",
Expand Down

0 comments on commit 11f3805

Please sign in to comment.