From 4c2938ed50a78753bfbdbb2f3cbf43f5fed779f9 Mon Sep 17 00:00:00 2001 From: steniu01 Date: Mon, 19 Jun 2017 15:44:45 +0100 Subject: COMPMID-315 Fix NEMinMaxLocation bug Change-Id: I3d693da31df3d34983b4135a9a1415b9ac046179 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78161 Reviewed-by: Moritz Pflanzer Tested-by: Kaizen --- .../core/NEON/kernels/NEMinMaxLocationKernel.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'arm_compute/core/NEON/kernels/NEMinMaxLocationKernel.h') diff --git a/arm_compute/core/NEON/kernels/NEMinMaxLocationKernel.h b/arm_compute/core/NEON/kernels/NEMinMaxLocationKernel.h index e405ea5ae4..b5375f613b 100644 --- a/arm_compute/core/NEON/kernels/NEMinMaxLocationKernel.h +++ b/arm_compute/core/NEON/kernels/NEMinMaxLocationKernel.h @@ -70,17 +70,17 @@ private: * * @param win The window to run the algorithm on. */ - void minmax_U8(const Window &win); + void minmax_U8(Window win); /** Performs the min/max algorithm on S16 images on a given window. * * @param win The window to run the algorithm on. */ - void minmax_S16(const Window &win); + void minmax_S16(Window win); /** Common signature for all the specialised MinMax functions * * @param[in] window Region on which to execute the kernel. */ - using MinMaxFunction = void (NEMinMaxKernel::*)(const Window &window); + using MinMaxFunction = void (NEMinMaxKernel::*)(Window window); /** MinMax function to use for the particular image types passed to configure() */ MinMaxFunction _func; /** Helper to update min/max values **/ @@ -148,14 +148,13 @@ private: template struct create_func_table; - const IImage *_input; /**< Input image. */ - int32_t *_min; /**< Minimum value. */ - int32_t *_max; /**< Maximum value. */ - uint32_t *_min_count; /**< Count of minimum value encounters. */ - uint32_t *_max_count; /**< Count of maximum value encounters. */ - ICoordinates2DArray *_min_loc; /**< Locations of minimum values. */ - ICoordinates2DArray *_max_loc; /**< Locations of maximum values. */ - unsigned int _num_elems_processed_per_iteration; /**< Elements processed per iteration. */ + const IImage *_input; /**< Input image. */ + int32_t *_min; /**< Minimum value. */ + int32_t *_max; /**< Maximum value. */ + uint32_t *_min_count; /**< Count of minimum value encounters. */ + uint32_t *_max_count; /**< Count of maximum value encounters. */ + ICoordinates2DArray *_min_loc; /**< Locations of minimum values. */ + ICoordinates2DArray *_max_loc; /**< Locations of maximum values. */ }; } #endif /*__ARM_COMPUTE_NEMINMAXLOCATIONKERNEL_H__ */ -- cgit v1.2.1