From 725b173d620726015cfebfd28356c1c1fa6e80b9 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 20 May 2019 19:40:47 +0100 Subject: COMPMID-2214: Remove std::vector> where possible. Change-Id: I6569aa64a4976966445ed7646129c36fe4654cd9 Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/1190 Comments-Addressed: Arm Jenkins Reviewed-by: Michalis Spyrou Tested-by: Arm Jenkins --- .../runtime/NEON/functions/NEGaussianPyramid.h | 14 ++++----- .../runtime/NEON/functions/NEHOGMultiDetection.h | 33 +++++++++++----------- arm_compute/runtime/NEON/functions/NEOpticalFlow.h | 24 ++++++++-------- 3 files changed, 35 insertions(+), 36 deletions(-) (limited to 'arm_compute') diff --git a/arm_compute/runtime/NEON/functions/NEGaussianPyramid.h b/arm_compute/runtime/NEON/functions/NEGaussianPyramid.h index 47fcd5e60f..f675d7299d 100644 --- a/arm_compute/runtime/NEON/functions/NEGaussianPyramid.h +++ b/arm_compute/runtime/NEON/functions/NEGaussianPyramid.h @@ -91,10 +91,10 @@ public: void run() override; private: - std::vector> _horizontal_border_handler; - std::vector> _vertical_border_handler; - std::vector> _horizontal_reduction; - std::vector> _vertical_reduction; + std::vector _horizontal_border_handler; + std::vector _vertical_border_handler; + std::vector _horizontal_reduction; + std::vector _vertical_reduction; }; /** Basic function to execute gaussian pyramid with ORB scale factor. This function calls the following NEON kernels and functions: @@ -115,8 +115,8 @@ public: void run() override; private: - std::vector> _gaus5x5; - std::vector> _scale_nearest; + std::vector _gaus5x5; + std::vector _scale_nearest; }; -} +} // namespace arm_compute #endif /*__ARM_COMPUTE_NEGAUSSIANPYRAMID_H__ */ diff --git a/arm_compute/runtime/NEON/functions/NEHOGMultiDetection.h b/arm_compute/runtime/NEON/functions/NEHOGMultiDetection.h index e21f4639c1..a1907fc762 100644 --- a/arm_compute/runtime/NEON/functions/NEHOGMultiDetection.h +++ b/arm_compute/runtime/NEON/functions/NEHOGMultiDetection.h @@ -89,22 +89,21 @@ public: void run() override; private: - MemoryGroup _memory_group; - NEHOGGradient _gradient_kernel; - std::vector> _orient_bin_kernel; - std::vector> _block_norm_kernel; - std::vector> _hog_detect_kernel; - std::unique_ptr _non_maxima_kernel; - std::vector> _hog_space; - std::vector> _hog_norm_space; - IDetectionWindowArray *_detection_windows; - Tensor _mag; - Tensor _phase; - bool _non_maxima_suppression; - size_t _num_orient_bin_kernel; - size_t _num_block_norm_kernel; - size_t _num_hog_detect_kernel; + MemoryGroup _memory_group; + NEHOGGradient _gradient_kernel; + std::vector _orient_bin_kernel; + std::vector _block_norm_kernel; + std::vector _hog_detect_kernel; + CPPDetectionWindowNonMaximaSuppressionKernel _non_maxima_kernel; + std::vector _hog_space; + std::vector _hog_norm_space; + IDetectionWindowArray *_detection_windows; + Tensor _mag; + Tensor _phase; + bool _non_maxima_suppression; + size_t _num_orient_bin_kernel; + size_t _num_block_norm_kernel; + size_t _num_hog_detect_kernel; }; -} - +} // namespace arm_compute #endif /* __ARM_COMPUTE_NEHOGMULTIDETECTION_H__ */ diff --git a/arm_compute/runtime/NEON/functions/NEOpticalFlow.h b/arm_compute/runtime/NEON/functions/NEOpticalFlow.h index 320247d260..7480b085ae 100644 --- a/arm_compute/runtime/NEON/functions/NEOpticalFlow.h +++ b/arm_compute/runtime/NEON/functions/NEOpticalFlow.h @@ -86,17 +86,17 @@ public: void run() override; private: - MemoryGroup _memory_group; - std::vector> _func_scharr; - std::vector> _kernel_tracker; - std::vector> _scharr_gx; - std::vector> _scharr_gy; - IKeyPointArray *_new_points; - const IKeyPointArray *_new_points_estimates; - const IKeyPointArray *_old_points; - LKInternalKeypointArray _new_points_internal; - LKInternalKeypointArray _old_points_internal; - unsigned int _num_levels; + MemoryGroup _memory_group; + std::vector _func_scharr; + std::vector _kernel_tracker; + std::vector _scharr_gx; + std::vector _scharr_gy; + IKeyPointArray *_new_points; + const IKeyPointArray *_new_points_estimates; + const IKeyPointArray *_old_points; + LKInternalKeypointArray _new_points_internal; + LKInternalKeypointArray _old_points_internal; + unsigned int _num_levels; }; -} +} // namespace arm_compute #endif /*__ARM_COMPUTE_NEOPTICALFLOW_H__ */ -- cgit v1.2.1