mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-19 12:06:28 +02:00
112 lines
3.6 KiB
Python
112 lines
3.6 KiB
Python
__version__ = "3.0"
|
|
|
|
from meshroom.core import desc
|
|
|
|
|
|
class PrepareDenseScene(desc.AVCommandLineNode):
|
|
commandLine = 'aliceVision_prepareDenseScene {allParams}'
|
|
size = desc.DynamicNodeSize('input')
|
|
parallelization = desc.Parallelization(blockSize=40)
|
|
commandLineRange = '--rangeStart {rangeStart} --rangeSize {rangeBlockSize}'
|
|
|
|
category = 'Dense Reconstruction'
|
|
documentation = '''
|
|
This node export undistorted images so the depth map and texturing can be computed on Pinhole images without distortion.
|
|
'''
|
|
|
|
inputs = [
|
|
desc.File(
|
|
name='input',
|
|
label='SfMData',
|
|
description='''SfMData file.''',
|
|
value='',
|
|
uid=[0],
|
|
),
|
|
desc.ListAttribute(
|
|
elementDesc=desc.File(
|
|
name="imagesFolder",
|
|
label="Images Folder",
|
|
description="",
|
|
value="",
|
|
uid=[0],
|
|
),
|
|
name="imagesFolders",
|
|
label="Images Folders",
|
|
description='Use images from specific folder(s). Filename should be the same or the image uid.',
|
|
),
|
|
desc.ListAttribute(
|
|
elementDesc=desc.File(
|
|
name="masksFolder",
|
|
label="Masks Folder",
|
|
description="",
|
|
value="",
|
|
uid=[0],
|
|
),
|
|
name="masksFolders",
|
|
label="Masks Folders",
|
|
description='Use masks from specific folder(s). Filename should be the same or the image uid.',
|
|
),
|
|
desc.ChoiceParam(
|
|
name='outputFileType',
|
|
label='Output File Type',
|
|
description='Output file type for the undistorted images.',
|
|
value='exr',
|
|
values=['jpg', 'png', 'tif', 'exr'],
|
|
exclusive=True,
|
|
uid=[0],
|
|
advanced=True
|
|
),
|
|
desc.BoolParam(
|
|
name='saveMetadata',
|
|
label='Save Metadata',
|
|
description='Save projections and intrinsics information in images metadata (only for .exr images).',
|
|
value=True,
|
|
uid=[0],
|
|
advanced=True
|
|
),
|
|
desc.BoolParam(
|
|
name='saveMatricesTxtFiles',
|
|
label='Save Matrices Text Files',
|
|
description='Save projections and intrinsics information in text files.',
|
|
value=False,
|
|
uid=[0],
|
|
advanced=True
|
|
),
|
|
desc.BoolParam(
|
|
name='evCorrection',
|
|
label='Correct images exposure',
|
|
description='Apply a correction on images Exposure Value',
|
|
value=False,
|
|
uid=[0],
|
|
advanced=True
|
|
),
|
|
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='Images Folder',
|
|
description='''Output folder.''',
|
|
value=desc.Node.internalFolder,
|
|
uid=[],
|
|
),
|
|
desc.File(
|
|
name='undistorted',
|
|
label='Undistorted Images',
|
|
description='List of undistorted images.',
|
|
semantic='image',
|
|
value=desc.Node.internalFolder + '<VIEW_ID>.{outputFileTypeValue}',
|
|
uid=[],
|
|
group='',
|
|
advanced=True
|
|
),
|
|
]
|