mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-24 14:36: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,
|
value=desc.Node.internalFolder,
|
||||||
uid=[0],
|
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(
|
desc.ChoiceParam(
|
||||||
name='calibrationMethod',
|
name='calibrationMethod',
|
||||||
label='Calibration Method',
|
label='Calibration Method',
|
||||||
|
@ -62,6 +71,7 @@ class LdrToHdrCalibration(desc.CommandLineNode):
|
||||||
value='debevec',
|
value='debevec',
|
||||||
exclusive=True,
|
exclusive=True,
|
||||||
uid=[0],
|
uid=[0],
|
||||||
|
enabled= lambda node: node.byPass.enabled and not node.byPass.value,
|
||||||
),
|
),
|
||||||
desc.ChoiceParam(
|
desc.ChoiceParam(
|
||||||
name='calibrationWeight',
|
name='calibrationWeight',
|
||||||
|
@ -75,6 +85,7 @@ class LdrToHdrCalibration(desc.CommandLineNode):
|
||||||
values=['default', 'gaussian', 'triangle', 'plateau'],
|
values=['default', 'gaussian', 'triangle', 'plateau'],
|
||||||
exclusive=True,
|
exclusive=True,
|
||||||
uid=[0],
|
uid=[0],
|
||||||
|
enabled= lambda node: node.byPass.enabled and not node.byPass.value,
|
||||||
),
|
),
|
||||||
desc.IntParam(
|
desc.IntParam(
|
||||||
name='userNbBrackets',
|
name='userNbBrackets',
|
||||||
|
@ -101,6 +112,7 @@ class LdrToHdrCalibration(desc.CommandLineNode):
|
||||||
range=(8, 14, 1),
|
range=(8, 14, 1),
|
||||||
uid=[0],
|
uid=[0],
|
||||||
advanced=True,
|
advanced=True,
|
||||||
|
enabled= lambda node: node.byPass.enabled and not node.byPass.value,
|
||||||
),
|
),
|
||||||
desc.IntParam(
|
desc.IntParam(
|
||||||
name='maxTotalPoints',
|
name='maxTotalPoints',
|
||||||
|
@ -112,6 +124,7 @@ class LdrToHdrCalibration(desc.CommandLineNode):
|
||||||
range=(8, 10000000, 1000),
|
range=(8, 10000000, 1000),
|
||||||
uid=[0],
|
uid=[0],
|
||||||
advanced=True,
|
advanced=True,
|
||||||
|
enabled= lambda node: node.byPass.enabled and not node.byPass.value,
|
||||||
),
|
),
|
||||||
desc.ChoiceParam(
|
desc.ChoiceParam(
|
||||||
name='verboseLevel',
|
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
|
@classmethod
|
||||||
def update(cls, node):
|
def update(cls, node):
|
||||||
if not isinstance(node.nodeDesc, cls):
|
if not isinstance(node.nodeDesc, cls):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue