diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp b/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp index 059040d6f05..9a1e48177ed 100644 --- a/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp +++ b/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp @@ -23,7 +23,6 @@ #include "IMB_colormanagement.h" CalculateStandardDeviationOperation::CalculateStandardDeviationOperation() - : CalculateMeanOperation() { /* pass */ } @@ -62,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; } @@ -100,5 +96,5 @@ void *CalculateStandardDeviationOperation::initializeTileData(rcti *rect) this->m_iscalculated = true; } unlockMutex(); - return NULL; + return nullptr; } |