aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/cl_kernels/hog.cl
diff options
context:
space:
mode:
authorJohn Richardson <john.richardson@arm.com>2017-11-27 14:35:09 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:42:33 +0000
commit25f23680b211b6dd27c006cb9575e816e8f80bb5 (patch)
treef46132851600739d8d05f7bf8e3b9b0896bd39bf /src/core/CL/cl_kernels/hog.cl
parent1d25ed54a948639d1894c8b021940df70005d519 (diff)
downloadComputeLibrary-25f23680b211b6dd27c006cb9575e816e8f80bb5.tar.gz
COMPMID-589: Port HOGDescriptor to new validation
Change-Id: I2021612e61de1b82aaeb49249d06929c7fceb15f Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/115216 Reviewed-by: Pablo Tello <pablo.tello@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CL/cl_kernels/hog.cl')
-rw-r--r--src/core/CL/cl_kernels/hog.cl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/CL/cl_kernels/hog.cl b/src/core/CL/cl_kernels/hog.cl
index 5d3a607c44..3d37fbcaf2 100644
--- a/src/core/CL/cl_kernels/hog.cl
+++ b/src/core/CL/cl_kernels/hog.cl
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017, 2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -124,7 +124,7 @@ __kernel void hog_orientation_binning(IMAGE_DECLARATION(mag),
for(; xc < CELL_WIDTH; xc++)
{
const float mag_value = *((__global short *)mag_row_ptr + xc);
- const float phase_value = *(mag_row_ptr + xc) * (float)PHASE_SCALE + 0.5f;
+ const float phase_value = *(phase_row_ptr + xc) * (float)PHASE_SCALE + 0.5f;
const float w1 = phase_value - floor(phase_value);
// The quantised phase is the histogram index [0, NUM_BINS - 1]