Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Castilla <manzanilla>2020-11-13 10:19:39 +0300
committerJeroen Bakker <jeroen@blender.org>2020-11-13 10:20:15 +0300
commit4dc59205258d5054fdcd452fe82ccd4b7ea76151 (patch)
tree2ed0362bf536931f19321d9c6edd3b5754c9d8fd /source/blender/compositor
parentdb7d8281c5a2a56bbc2b7c05ec7160d8819ee191 (diff)
Fix CalculateStandardDeviationOperation incorrect results for R G B channels
Standard deviation formula wasn't being applied correctly when selecting R G B cases. Issue is there since Blender 2.64 as it was incorrectly ported over from the previous compositor. Reviewed By: Sergey Sharybin, Jeroen Bakker Differential Revision: https://developer.blender.org/D9384
Diffstat (limited to 'source/blender/compositor')
-rw-r--r--source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp b/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp
index 9ef77b9e5ea..9a1e48177ed 100644
--- a/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp
+++ b/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp
@@ -61,21 +61,18 @@ void *CalculateStandardDeviationOperation::initializeTileData(rcti *rect)
case 2: /* red */
{
float value = buffer[offset];
- sum += value;
sum += (value - mean) * (value - mean);
break;
}
case 3: /* green */
{
float value = buffer[offset + 1];
- sum += value;
sum += (value - mean) * (value - mean);
break;
}
case 4: /* blue */
{
float value = buffer[offset + 2];
- sum += value;
sum += (value - mean) * (value - mean);
break;
}