remove limits on brackets detection

This commit is contained in:
Fabien SERVANT 2023-07-19 10:09:42 +02:00
parent a12674ede3
commit 4650e838e9
3 changed files with 3 additions and 18 deletions

View file

@ -267,9 +267,4 @@ Calibrate LDR to HDR response curve from samples.
else:
bestTuple = bracketSizes.most_common(1)[0]
bestBracketSize = bestTuple[0]
bestCount = bestTuple[1]
total = bestBracketSize * bestCount
if total >= len(inputs) - 2:
node.nbBrackets.value = bestBracketSize
else:
node.nbBrackets.value = 0
node.nbBrackets.value = bestBracketSize