Merge pull request #1055 from alicevision/dev/panoramaAdjustParams

[nodes] PanoramaWarping: boolean parameter to estimate the resolution automatically
This commit is contained in:
Fabien Castan 2020-09-10 20:18:17 +02:00 committed by GitHub
commit 5dcb2c9ca7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 6 deletions

View file

@ -27,6 +27,9 @@ class LdrToHdrCalibration(desc.CommandLineNode):
commandLine = 'aliceVision_LdrToHdrCalibration {allParams}'
size = desc.DynamicNodeSize('input')
cpu = desc.Level.INTENSIVE
ram = desc.Level.NORMAL
documentation = '''
Calibrate LDR to HDR response curve from samples
'''

View file

@ -10,6 +10,9 @@ class PanoramaCompositing(desc.CommandLineNode):
commandLine = 'aliceVision_panoramaCompositing {allParams}'
size = desc.DynamicNodeSize('input')
cpu = desc.Level.INTENSIVE
ram = desc.Level.INTENSIVE
documentation = '''
Once the images have been transformed geometrically (in PanoramaWarping),
they have to be fused together in a single panorama image which looks like a single photography.

View file

@ -25,20 +25,27 @@ Compute the image warping for each input image in the panorama coordinate system
value='',
uid=[0],
),
desc.BoolParam(
name='estimateResolution',
label='Estimate Resolution',
description='Estimate output panorama resolution automatically based on the input images resolution.',
value=True,
uid=[0],
group=None, # skip group from command line
),
desc.IntParam(
name='panoramaWidth',
label='Panorama Width',
description='Panorama Width (in pixels).\n'
'Set 0 to let the software choose the size automatically, based on "percentUpscale" parameter.',
description='Choose the output panorama width (in pixels).',
value=10000,
range=(0, 50000, 1000),
uid=[0]
uid=[0],
enabled=lambda node: (not node.estimateResolution.value),
),
desc.IntParam(
name='percentUpscale',
label='Upscale ratio',
description='Upscale percent\n'
'Only used if panorama width is set to 0 for automatic estimation.\n'
description='Percentage of upscaled pixels.\n'
'\n'
'How many percent of the pixels will be upscaled (compared to its original resolution):\n'
' * 0: all pixels will be downscaled\n'
@ -46,7 +53,7 @@ Compute the image warping for each input image in the panorama coordinate system
' * 100: all pixels will be upscaled\n',
value=50,
range=(0, 100, 1),
enabled=lambda node: (node.panoramaWidth.value == 0),
enabled=lambda node: (node.estimateResolution.value),
uid=[0]
),
desc.ChoiceParam(