mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-24 06:26:29 +02:00
[nodes] LdrToHdrCalibration: add bypass option
This commit is contained in:
parent
ef99a2916d
commit
932b4d51e7
1 changed files with 18 additions and 0 deletions
|
@ -49,6 +49,15 @@ class LdrToHdrCalibration(desc.CommandLineNode):
|
|||
value=desc.Node.internalFolder,
|
||||
uid=[0],
|
||||
),
|
||||
desc.BoolParam(
|
||||
name='byPass',
|
||||
label='Bypass',
|
||||
description="Bypass HDR creation and use the medium bracket as the source for the next steps",
|
||||
value=False,
|
||||
uid=[0],
|
||||
group='internal',
|
||||
enabled= lambda node: node.nbBrackets.value != 1,
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name='calibrationMethod',
|
||||
label='Calibration Method',
|
||||
|
@ -62,6 +71,7 @@ class LdrToHdrCalibration(desc.CommandLineNode):
|
|||
value='debevec',
|
||||
exclusive=True,
|
||||
uid=[0],
|
||||
enabled= lambda node: node.byPass.enabled and not node.byPass.value,
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name='calibrationWeight',
|
||||
|
@ -75,6 +85,7 @@ class LdrToHdrCalibration(desc.CommandLineNode):
|
|||
values=['default', 'gaussian', 'triangle', 'plateau'],
|
||||
exclusive=True,
|
||||
uid=[0],
|
||||
enabled= lambda node: node.byPass.enabled and not node.byPass.value,
|
||||
),
|
||||
desc.IntParam(
|
||||
name='userNbBrackets',
|
||||
|
@ -101,6 +112,7 @@ class LdrToHdrCalibration(desc.CommandLineNode):
|
|||
range=(8, 14, 1),
|
||||
uid=[0],
|
||||
advanced=True,
|
||||
enabled= lambda node: node.byPass.enabled and not node.byPass.value,
|
||||
),
|
||||
desc.IntParam(
|
||||
name='maxTotalPoints',
|
||||
|
@ -112,6 +124,7 @@ class LdrToHdrCalibration(desc.CommandLineNode):
|
|||
range=(8, 10000000, 1000),
|
||||
uid=[0],
|
||||
advanced=True,
|
||||
enabled= lambda node: node.byPass.enabled and not node.byPass.value,
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name='verboseLevel',
|
||||
|
@ -134,6 +147,11 @@ class LdrToHdrCalibration(desc.CommandLineNode):
|
|||
)
|
||||
]
|
||||
|
||||
def processChunk(self, chunk):
|
||||
if chunk.node.nbBrackets.value == 1 or chunk.node.byPass.value:
|
||||
return
|
||||
super(LdrToHdrCalibration, self).processChunk(chunk)
|
||||
|
||||
@classmethod
|
||||
def update(cls, node):
|
||||
if not isinstance(node.nodeDesc, cls):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue