aboutsummaryrefslogtreecommitdiff
path: root/src/core/NEON/kernels/NECumulativeDistributionKernel.cpp
diff options
context:
space:
mode:
authorMichele Di Giorgio <michele.digiorgio@arm.com>2018-09-05 16:29:28 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:54:54 +0000
commit7cd7021bcd6c2fcfea164a01245dc43ade2bbe68 (patch)
treeaf6371ad11bbde780f4e17b0bb59ba3bd6c87c94 /src/core/NEON/kernels/NECumulativeDistributionKernel.cpp
parentefbf6c8fd54159b26eda43eea7a12fce491ca13a (diff)
downloadComputeLibrary-7cd7021bcd6c2fcfea164a01245dc43ade2bbe68.tar.gz
COMPMID-1555: Fix mismatch in EqualizeHistogram function
Change-Id: I1fe346a360b2d9ddd8576a1d24ff66e78c95c1f2 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/147049 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/core/NEON/kernels/NECumulativeDistributionKernel.cpp')
-rw-r--r--src/core/NEON/kernels/NECumulativeDistributionKernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/NEON/kernels/NECumulativeDistributionKernel.cpp b/src/core/NEON/kernels/NECumulativeDistributionKernel.cpp
index d2eac2c254..31b688c517 100644
--- a/src/core/NEON/kernels/NECumulativeDistributionKernel.cpp
+++ b/src/core/NEON/kernels/NECumulativeDistributionKernel.cpp
@@ -102,7 +102,7 @@ void NECumulativeDistributionKernel::run(const Window &window, const ThreadInfo
}
else
{
- const float diff = image_size - 1;
+ const float diff = image_size - cd_min;
for(unsigned int x = 0; x < _histogram_size; ++x)
{