diff --git a/meshroom/nodes/aliceVision/PanoramaWarping.py b/meshroom/nodes/aliceVision/PanoramaWarping.py index 7cba255f74..b53e7e1c03 100644 --- a/meshroom/nodes/aliceVision/PanoramaWarping.py +++ b/meshroom/nodes/aliceVision/PanoramaWarping.py @@ -29,11 +29,26 @@ class PanoramaWarping(desc.CommandLineNode): 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).', + 'Set 0 to let the software choose the size automatically, based on "percentUpscale" parameter.', 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 estimation.\n' + '\n' + 'How many percent of the pixels will be upscaled (compared to its original resolution):\n' + ' * 0: all pixels will be downscaled\n' + ' * 50: on average the input resolution is kept (optimal to reduce over/under-sampling)\n' + ' * 100: all pixels will be upscaled\n', + value=50, + range=(0, 100, 1), + enabled=lambda node: (node.panoramaWidth.value == 0), + uid=[0] + ), desc.ChoiceParam( name='verboseLevel', label='Verbose Level',