mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-29 14:37:26 +02:00
[nodes] A-C: Harmonize and improve labels and descriptions
Use CamelCase for all labels, always end descriptions with periods, and replace the mixed use of single and double quotes with double quotes only.
This commit is contained in:
parent
6ac9948b04
commit
241bead35c
10 changed files with 757 additions and 668 deletions
|
@ -8,173 +8,187 @@ class CameraRigLocalization(desc.AVCommandLineNode):
|
|||
commandLine = 'aliceVision_rigLocalization {allParams}'
|
||||
|
||||
category = 'Utils'
|
||||
documentation = '''
|
||||
'''
|
||||
|
||||
inputs = [
|
||||
desc.File(
|
||||
name='sfmdata',
|
||||
label='Sfm Data',
|
||||
description='''The sfmData file.''',
|
||||
value='',
|
||||
name="sfmdata",
|
||||
label="SfMData",
|
||||
description="The input SfMData file.",
|
||||
value="",
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.File(
|
||||
name='mediapath',
|
||||
label='Media Path',
|
||||
description='''The path to the video file, the folder of the image sequence or a text file (one image path per line) for each camera of the rig (eg. --mediapath /path/to/cam1.mov /path/to/cam2.mov).''',
|
||||
value='',
|
||||
name="mediapath",
|
||||
label="Media Path",
|
||||
description="The path to the video file, the folder of the image sequence or a text file (one image path per line) for each camera of the rig (eg. --mediapath /path/to/cam1.mov /path/to/cam2.mov).",
|
||||
value="",
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.File(
|
||||
name='calibration',
|
||||
label='Rig Calibration File',
|
||||
description='''The file containing the calibration data for the rig (subposes)''',
|
||||
value='',
|
||||
name="calibration",
|
||||
label="Rig Calibration File",
|
||||
description="The file containing the calibration data for the rig (subposes).",
|
||||
value="",
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.File(
|
||||
name='cameraIntrinsics',
|
||||
label='Camera Intrinsics',
|
||||
description='''The intrinsics calibration file for each camera of the rig. (eg. --cameraIntrinsics /path/to/calib1.txt /path/to/calib2.txt).''',
|
||||
value='',
|
||||
name="cameraIntrinsics",
|
||||
label="Camera Intrinsics",
|
||||
description="The intrinsics calibration file for each camera of the rig (eg. --cameraIntrinsics /path/to/calib1.txt /path/to/calib2.txt).",
|
||||
value="",
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.File(
|
||||
name='descriptorPath',
|
||||
label='Descriptor Path',
|
||||
description='''Folder containing the .desc.''',
|
||||
value='',
|
||||
name="descriptorPath",
|
||||
label="Descriptor Path",
|
||||
description="Folder containing the .desc.",
|
||||
value="",
|
||||
uid=[0],
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name='matchDescTypes',
|
||||
label='Match Describer Types',
|
||||
description='''The describer types to use for the matching''',
|
||||
value=['dspsift'],
|
||||
values=['sift', 'sift_float', 'sift_upright', 'dspsift', 'akaze', 'akaze_liop', 'akaze_mldb', 'cctag3', 'cctag4', 'sift_ocv', 'akaze_ocv'],
|
||||
exclusive=False,
|
||||
uid=[0],
|
||||
joinChar=',',
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name='preset',
|
||||
label='Preset',
|
||||
description='''Preset for the feature extractor when localizing a new image (low, medium, normal, high, ultra)''',
|
||||
value='normal',
|
||||
values=['low', 'medium', 'normal', 'high', 'ultra'],
|
||||
exclusive=True,
|
||||
name="matchDescTypes",
|
||||
label="Match Describer Types",
|
||||
description="The describer types to use for the matching.",
|
||||
value=["dspsift"],
|
||||
values=["sift", "sift_float", "sift_upright", "dspsift", "akaze", "akaze_liop", "akaze_mldb", "cctag3", "cctag4", "sift_ocv", "akaze_ocv"],
|
||||
exclusive=False,
|
||||
uid=[0],
|
||||
),
|
||||
joinChar=",",
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name='resectionEstimator',
|
||||
label='Resection Estimator',
|
||||
description='''The type of *sac framework to use for resection (acransac, loransac)''',
|
||||
value='acransac',
|
||||
values=['acransac', 'loransac'],
|
||||
name="preset",
|
||||
label="Preset",
|
||||
description="Preset for the feature extractor when localizing a new image (low, medium, normal, high, ultra).",
|
||||
value="normal",
|
||||
values=["low", "medium", "normal", "high", "ultra"],
|
||||
exclusive=True,
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name='matchingEstimator',
|
||||
label='Matching Estimator',
|
||||
description='''The type of *sac framework to use for matching (acransac, loransac)''',
|
||||
value='acransac',
|
||||
values=['acransac', 'loransac'],
|
||||
name="resectionEstimator",
|
||||
label="Resection Estimator",
|
||||
description="The type of *sac framework to use for resection (acransac, loransac).",
|
||||
value="acransac",
|
||||
values=["acransac", "loransac"],
|
||||
exclusive=True,
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name="matchingEstimator",
|
||||
label="Matching Estimator",
|
||||
description="The type of *sac framework to use for matching (acransac, loransac).",
|
||||
value="acransac",
|
||||
values=["acransac", "loransac"],
|
||||
exclusive=True,
|
||||
uid=[0],
|
||||
),
|
||||
desc.StringParam(
|
||||
name='refineIntrinsics',
|
||||
label='Refine Intrinsics',
|
||||
description='''Enable/Disable camera intrinsics refinement for each localized image''',
|
||||
value='',
|
||||
name="refineIntrinsics",
|
||||
label="Refine Intrinsics",
|
||||
description="Enable/Disable camera intrinsics refinement for each localized image.",
|
||||
value="",
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.FloatParam(
|
||||
name='reprojectionError',
|
||||
label='Reprojection Error',
|
||||
description='''Maximum reprojection error (in pixels) allowed for resectioning. If set to 0 it lets the ACRansac select an optimal value.''',
|
||||
name="reprojectionError",
|
||||
label="Reprojection Error",
|
||||
description="Maximum reprojection error (in pixels) allowed for resectioning.\n"
|
||||
"If set to 0, it lets the ACRansac select an optimal value.",
|
||||
value=4.0,
|
||||
range=(0.0, 10.0, 0.1),
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.BoolParam(
|
||||
name='useLocalizeRigNaive',
|
||||
label='Use Localize Rig Naive',
|
||||
description='''Enable/Disable the naive method for rig localization: naive method tries to localize each camera separately.''',
|
||||
name="useLocalizeRigNaive",
|
||||
label="Use Localize Rig Naive",
|
||||
description="Enable/Disable the naive method for rig localization: naive method tries to localize each camera separately.",
|
||||
value=False,
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.FloatParam(
|
||||
name='angularThreshold',
|
||||
label='Angular Threshold',
|
||||
description='''The maximum angular threshold in degrees between feature bearing vector and 3D point direction. Used only with the opengv method.''',
|
||||
name="angularThreshold",
|
||||
label="Angular Threshold",
|
||||
description="The maximum angular threshold in degrees between feature bearing vector and 3D point direction. Used only with the opengv method.",
|
||||
value=0.1,
|
||||
range=(0.0, 10.0, 0.01),
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.File(
|
||||
name='voctree',
|
||||
label='Voctree',
|
||||
description='''[voctree] Filename for the vocabulary tree''',
|
||||
value='${ALICEVISION_VOCTREE}',
|
||||
name="voctree",
|
||||
label="Voctree",
|
||||
description="[voctree] Filename for the vocabulary tree.""",
|
||||
value="${ALICEVISION_VOCTREE}",
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.File(
|
||||
name='voctreeWeights',
|
||||
label='Voctree Weights',
|
||||
description='''[voctree] Filename for the vocabulary tree weights''',
|
||||
value='',
|
||||
name="voctreeWeights",
|
||||
label="Voctree Weights",
|
||||
description="[voctree] Filename for the vocabulary tree weights.",
|
||||
value="",
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name='algorithm',
|
||||
label='Algorithm',
|
||||
description='''[voctree] Algorithm type: {FirstBest,AllResults}''',
|
||||
value='AllResults',
|
||||
values=['FirstBest', 'AllResults'],
|
||||
name="algorithm",
|
||||
label="Algorithm",
|
||||
description="[voctree] Algorithm type: {FirstBest, AllResults}.",
|
||||
value="AllResults",
|
||||
values=["FirstBest", "AllResults"],
|
||||
exclusive=True,
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.IntParam(
|
||||
name='nbImageMatch',
|
||||
label='Nb Image Match',
|
||||
description='''[voctree] Number of images to retrieve in the database''',
|
||||
name="nbImageMatch",
|
||||
label="Nb Image Match",
|
||||
description="[voctree] Number of images to retrieve in the database.",
|
||||
value=4,
|
||||
range=(0, 100, 1),
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.IntParam(
|
||||
name='maxResults',
|
||||
label='Max Results',
|
||||
description='''[voctree] For algorithm AllResults, it stops the image matching when this number of matched images is reached. If 0 it is ignored.''',
|
||||
name="maxResults",
|
||||
label="Max Results",
|
||||
description="[voctree] For algorithm AllResults, it stops the image matching when this number of matched images is reached.\n"
|
||||
"If set to 0, it is ignored.",
|
||||
value=10,
|
||||
range=(0, 100, 1),
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.FloatParam(
|
||||
name='matchingError',
|
||||
label='Matching Error',
|
||||
description='''[voctree] Maximum matching error (in pixels) allowed for image matching with geometric verification. If set to 0 it lets the ACRansac select an optimal value.''',
|
||||
name="matchingError",
|
||||
label="Matching Error",
|
||||
description="[voctree] Maximum matching error (in pixels) allowed for image matching with geometric verification.\n"
|
||||
"If set to 0, it lets the ACRansac select an optimal value.",
|
||||
value=4.0,
|
||||
range=(0.0, 10.0, 0.1),
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
desc.IntParam(
|
||||
name='nNearestKeyFrames',
|
||||
label='N Nearest Key Frames',
|
||||
description='''[cctag] Number of images to retrieve in database''',
|
||||
name="nNearestKeyFrames",
|
||||
label="N Nearest Key Frames",
|
||||
description="[cctag] Number of images to retrieve in database.",
|
||||
value=5,
|
||||
range=(0, 50, 1),
|
||||
uid=[0],
|
||||
),
|
||||
),
|
||||
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='outputAlembic',
|
||||
label='Alembic',
|
||||
description='''Filename for the SfMData export file (where camera poses will be stored).''',
|
||||
value=desc.Node.internalFolder + 'trackedcameras.abc',
|
||||
name="outputAlembic",
|
||||
label="Alembic",
|
||||
description="Filename for the SfMData export file (where camera poses will be stored).",
|
||||
value=desc.Node.internalFolder + "trackedcameras.abc",
|
||||
uid=[],
|
||||
),
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue