mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 08:18:25 +02:00
Merge pull request #1055 from alicevision/dev/panoramaAdjustParams
[nodes] PanoramaWarping: boolean parameter to estimate the resolution automatically
This commit is contained in:
commit
5dcb2c9ca7
3 changed files with 19 additions and 6 deletions
|
@ -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
|
||||
'''
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue