mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[nodes][aliceVision] hdr: change descriptions and label parameters
This commit is contained in:
parent
158f026019
commit
6d377e1b7d
1 changed files with 35 additions and 27 deletions
|
@ -12,9 +12,9 @@ class LDRToHDR(desc.CommandLineNode):
|
||||||
name='inputFolder',
|
name='inputFolder',
|
||||||
label='Input File/Folder',
|
label='Input File/Folder',
|
||||||
description="Folder containing LDR images",
|
description="Folder containing LDR images",
|
||||||
value='',
|
value='',
|
||||||
uid=[0],
|
uid=[0],
|
||||||
),
|
),
|
||||||
name="input",
|
name="input",
|
||||||
label="Input Files or Folders",
|
label="Input Files or Folders",
|
||||||
description='Folders containing LDR images.',
|
description='Folders containing LDR images.',
|
||||||
|
@ -33,62 +33,62 @@ class LDRToHDR(desc.CommandLineNode):
|
||||||
" * linear \n"
|
" * linear \n"
|
||||||
" * robertson \n"
|
" * robertson \n"
|
||||||
" * debevec \n"
|
" * debevec \n"
|
||||||
" * beta: grossberg",
|
" * grossberg",
|
||||||
values=['linear', 'robertson', 'debevec', 'grossberg'],
|
values=['linear', 'robertson', 'debevec', 'grossberg'],
|
||||||
value='linear',
|
value='linear',
|
||||||
exclusive=True,
|
exclusive=True,
|
||||||
uid=[0],
|
uid=[0],
|
||||||
),
|
),
|
||||||
desc.File(
|
desc.File(
|
||||||
name='inputResponse',
|
name='inputResponse',
|
||||||
label='Input Response',
|
label='Input Response',
|
||||||
description="external camera response file path to fuse all LDR images together.",
|
description="external camera response file path to fuse all LDR images together.",
|
||||||
value='',
|
value='',
|
||||||
uid=[0],
|
uid=[0],
|
||||||
),
|
),
|
||||||
desc.StringParam(
|
desc.StringParam(
|
||||||
name='targetExposureImage',
|
name='targetExposureImage',
|
||||||
label='Target Exposure Image',
|
label='Target Exposure Image',
|
||||||
description="LDR image at the target exposure for the output HDR image to be centered.",
|
description="LDR image(s) name(s) at the target exposure for the output HDR image(s) to be centered.",
|
||||||
value='',
|
value='',
|
||||||
uid=[0],
|
uid=[0],
|
||||||
),
|
),
|
||||||
desc.ChoiceParam(
|
desc.ChoiceParam(
|
||||||
name='calibrationWeight',
|
name='calibrationWeight',
|
||||||
label='Calibration Weight',
|
label='Calibration Weight',
|
||||||
description="Weight function type (default, gaussian, triangle, plateau).",
|
description="Weight function used to calibrate camera response \n"
|
||||||
|
" * default \n"
|
||||||
|
" * gaussian \n"
|
||||||
|
" * triangle \n""
|
||||||
|
" * plateau",
|
||||||
value='default',
|
value='default',
|
||||||
values=['default', 'gaussian', 'triangle', 'plateau'],
|
values=['default', 'gaussian', 'triangle', 'plateau'],
|
||||||
exclusive=True,
|
exclusive=True,
|
||||||
uid=[0],
|
uid=[0],
|
||||||
),
|
),
|
||||||
desc.ChoiceParam(
|
desc.ChoiceParam(
|
||||||
name='fusionWeight',
|
name='fusionWeight',
|
||||||
label='Fusion Weight',
|
label='Fusion Weight',
|
||||||
description="Weight function used to fuse all LDR images together (gaussian, triangle, plateau).",
|
description="Weight function used to fuse all LDR images together \n""
|
||||||
|
" * gaussian \n"
|
||||||
|
" * triangle \n"
|
||||||
|
" * plateau",
|
||||||
value='gaussian',
|
value='gaussian',
|
||||||
values=['gaussian', 'triangle', 'plateau'],
|
values=['gaussian', 'triangle', 'plateau'],
|
||||||
exclusive=True,
|
exclusive=True,
|
||||||
uid=[0],
|
uid=[0],
|
||||||
),
|
),
|
||||||
desc.FloatParam(
|
desc.FloatParam(
|
||||||
name='oversaturatedCorrection',
|
name='expandDynamicRange',
|
||||||
label='Oversaturated Correction',
|
label='Expand Dynamic Range',
|
||||||
description="Oversaturated correction for pixels oversaturated in all images: \n"
|
description="Correction of clamped high values in dynamic range: \n"
|
||||||
" - use 0 for no correction \n"
|
" - use 0 for no correction \n"
|
||||||
" - use 0.5 for interior lighting \n"
|
" - use 0.5 for interior lighting \n"
|
||||||
" - use 1 for outdoor lighting",
|
" - use 1 for outdoor lighting",
|
||||||
value=1,
|
value=1,
|
||||||
range=(0, 1, 0.1),
|
range=(0, 1, 0.1),
|
||||||
uid=[0],
|
uid=[0],
|
||||||
),
|
),
|
||||||
desc.File(
|
|
||||||
name='recoverPath',
|
|
||||||
label='Recover Path',
|
|
||||||
description="Path to write recovered LDR image at the target exposure by applying inverse response on HDR image.",
|
|
||||||
value='',
|
|
||||||
uid=[0],
|
|
||||||
),
|
|
||||||
desc.ChoiceParam(
|
desc.ChoiceParam(
|
||||||
name='verboseLevel',
|
name='verboseLevel',
|
||||||
label='Verbose Level',
|
label='Verbose Level',
|
||||||
|
@ -97,7 +97,15 @@ class LDRToHDR(desc.CommandLineNode):
|
||||||
values=['fatal', 'error', 'warning', 'info', 'debug', 'trace'],
|
values=['fatal', 'error', 'warning', 'info', 'debug', 'trace'],
|
||||||
exclusive=True,
|
exclusive=True,
|
||||||
uid=[],
|
uid=[],
|
||||||
),
|
),
|
||||||
|
desc.File(
|
||||||
|
name='recoverPath',
|
||||||
|
label='Output Recovered Files',
|
||||||
|
description="(debug) Folder for recovered LDR images at target exposures.",
|
||||||
|
advanced=True,
|
||||||
|
value='',
|
||||||
|
uid=[],
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
outputs = [
|
outputs = [
|
||||||
|
@ -107,12 +115,12 @@ class LDRToHDR(desc.CommandLineNode):
|
||||||
description="Output HDR image path.",
|
description="Output HDR image path.",
|
||||||
value=desc.Node.internalFolder + 'hdr.exr',
|
value=desc.Node.internalFolder + 'hdr.exr',
|
||||||
uid=[],
|
uid=[],
|
||||||
),
|
),
|
||||||
desc.File(
|
desc.File(
|
||||||
name='outputResponse',
|
name='outputResponse',
|
||||||
label='Output Response',
|
label='Output Response',
|
||||||
description="Output response function path.",
|
description="Output response function path.",
|
||||||
value=desc.Node.internalFolder + 'response.ods',
|
value=desc.Node.internalFolder + 'response.csv',
|
||||||
uid=[],
|
uid=[],
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue