From 4650e838e948b05d72ff60a30c1c5865e3b7a79f Mon Sep 17 00:00:00 2001 From: Fabien SERVANT Date: Wed, 19 Jul 2023 10:09:42 +0200 Subject: [PATCH] remove limits on brackets detection --- meshroom/nodes/aliceVision/LdrToHdrCalibration.py | 7 +------ meshroom/nodes/aliceVision/LdrToHdrMerge.py | 7 +------ meshroom/nodes/aliceVision/LdrToHdrSampling.py | 7 +------ 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/meshroom/nodes/aliceVision/LdrToHdrCalibration.py b/meshroom/nodes/aliceVision/LdrToHdrCalibration.py index 5093d4fd..f6f78840 100644 --- a/meshroom/nodes/aliceVision/LdrToHdrCalibration.py +++ b/meshroom/nodes/aliceVision/LdrToHdrCalibration.py @@ -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 diff --git a/meshroom/nodes/aliceVision/LdrToHdrMerge.py b/meshroom/nodes/aliceVision/LdrToHdrMerge.py index 1cae31c6..ad55ac2c 100644 --- a/meshroom/nodes/aliceVision/LdrToHdrMerge.py +++ b/meshroom/nodes/aliceVision/LdrToHdrMerge.py @@ -353,12 +353,7 @@ Merge LDR images into HDR images. 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 def processChunk(self, chunk): # Trick to avoid sending --nbBrackets to the command line when the bracket detection is automatic. diff --git a/meshroom/nodes/aliceVision/LdrToHdrSampling.py b/meshroom/nodes/aliceVision/LdrToHdrSampling.py index fb62a6ef..b5b491da 100644 --- a/meshroom/nodes/aliceVision/LdrToHdrSampling.py +++ b/meshroom/nodes/aliceVision/LdrToHdrSampling.py @@ -288,9 +288,4 @@ Sample pixels from Low range images for HDR creation. 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