mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-28 08:26:32 +02:00
[nodes] LdrToHdr nodes: update nb brackets detection for single view/multiple exposures
This commit is contained in:
parent
6b99e0b2c2
commit
cb17b1c976
3 changed files with 18 additions and 3 deletions
|
@ -210,7 +210,12 @@ class LdrToHdrSampling(desc.CommandLineNode):
|
|||
exposures = None
|
||||
bracketSizes = set()
|
||||
if len(exposureGroups) == 1:
|
||||
node.nbBrackets.value = 1
|
||||
if len(set(exposureGroups[0])) == 1:
|
||||
# Single exposure and multiple views
|
||||
node.nbBrackets.value = 1
|
||||
else:
|
||||
# Single view and multiple exposures
|
||||
node.nbBrackets.value = len(exposureGroups[0])
|
||||
else:
|
||||
for expGroup in exposureGroups:
|
||||
bracketSizes.add(len(expGroup))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue