Meshroom/meshroom/nodes/aliceVision/PanoramaWarping.py
2020-08-28 11:42:08 +02:00

68 lines
2.2 KiB
Python

__version__ = "1.0"
import json
import os
from meshroom.core import desc
class PanoramaWarping(desc.CommandLineNode):
commandLine = 'aliceVision_panoramaWarping {allParams}'
size = desc.DynamicNodeSize('input')
parallelization = desc.Parallelization(blockSize=5)
commandLineRange = '--rangeStart {rangeStart} --rangeSize {rangeBlockSize}'
documentation = '''
Compute the image warping for each input image in the panorama coordinate system.
'''
inputs = [
desc.File(
name='input',
label='Input',
description="SfM Data File",
value='',
uid=[0],
),
desc.IntParam(
name='panoramaWidth',
label='Panorama Width',
description='Panorama Width (in pixels).\n'
'Set 0 to let the software choose the size automatically, so that on average the input resolution is kept (to limit over/under sampling).',
value=10000,
range=(0, 50000, 1000),
uid=[0]
),
desc.IntParam(
name='percentUpscale',
label='Upscale ratio',
description='Upscale percent\n'
'Only used if panorama Width is set to 0 for automatic choice\n'
'How many percent of the pixels will be upscaled :\n'
'Choose 0 and no pixel will be upscaled compared to its original (input) resolution\n'
'Choose 1000 and all pixel will be upscaled compared to its original (input) resolution\n',
value=50,
range=(0, 100, 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='output',
label='Output directory',
description='',
value=desc.Node.internalFolder,
uid=[],
),
]