From 25f23680b211b6dd27c006cb9575e816e8f80bb5 Mon Sep 17 00:00:00 2001 From: John Richardson Date: Mon, 27 Nov 2017 14:35:09 +0000 Subject: COMPMID-589: Port HOGDescriptor to new validation Change-Id: I2021612e61de1b82aaeb49249d06929c7fceb15f Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/115216 Reviewed-by: Pablo Tello Tested-by: Jenkins --- src/core/CL/cl_kernels/hog.cl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/CL/cl_kernels/hog.cl') 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] -- cgit v1.2.1