Skip to content

Commit

Permalink
Merge pull request #1049 from alicevision/dev/computePanoramaSize
Browse files Browse the repository at this point in the history
[nodes] PanoramaCompositing: option to select the percentage of upscaled pixels
  • Loading branch information
fabiencastan authored Sep 7, 2020
2 parents f20db3a + 7b42ed7 commit a3170ba
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion meshroom/nodes/aliceVision/PanoramaWarping.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a3170ba

Please sign in to comment.