diff options
author | John Richardson <john.richardson@arm.com> | 2018-02-22 14:09:31 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:49:16 +0000 |
commit | 8de92619e223225aabdca873c02f231d8e941fd1 (patch) | |
tree | 6b0c7a04e58e120fc9969270cb7ba432a31e1258 /src/core/CL/cl_kernels/optical_flow_pyramid_lk.cl | |
parent | 2abb216e1aaeefe65c8a7e6294b4735f0647c927 (diff) | |
download | ComputeLibrary-8de92619e223225aabdca873c02f231d8e941fd1.tar.gz |
COMPMID-585: Port OpticalFlow to new validation
Change-Id: Ia36bd11ca27420d3059eea15df81b237900149ec
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/125175
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: John Richardson <john.richardson@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/core/CL/cl_kernels/optical_flow_pyramid_lk.cl')
-rw-r--r-- | src/core/CL/cl_kernels/optical_flow_pyramid_lk.cl | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/core/CL/cl_kernels/optical_flow_pyramid_lk.cl b/src/core/CL/cl_kernels/optical_flow_pyramid_lk.cl index 20474f0095..8a126a019c 100644 --- a/src/core/CL/cl_kernels/optical_flow_pyramid_lk.cl +++ b/src/core/CL/cl_kernels/optical_flow_pyramid_lk.cl @@ -167,7 +167,11 @@ __kernel void finalize( Keypoint new_point; new_point.x = round(new_point_internal.x); new_point.y = round(new_point_internal.y); + new_point.strength = 0.f; + new_point.scale = 0.f; + new_point.orientation = 0.f; new_point.tracking_status = new_point_internal.tracking_status; + new_point.error = 0.f; // Store new point new_points[idx] = new_point; @@ -352,8 +356,7 @@ void __kernel lktracker_stage0( * @param[in] border_limits It stores the right border limit (width - window_dimension - 1, height - window_dimension - 1,) * @param[in] eig_const 1.0f / (float)(2.0f * window_dimension * window_dimension) * @param[in] level0 It is set to 1 if level of pyramid = 0 - * @param[in] term_iteration It is set to 1 if termination = VX_TERM_CRITERIA_ITERATIONS - * @param[in] term_epsilon It is set to 1 if termination = VX_TERM_CRITERIA_EPSILON + * @param[in] term_epsilon It is set to 1 if termination = TERM_CRITERIA_EPSILON */ void __kernel lktracker_stage1( IMAGE_DECLARATION(new_image), @@ -368,7 +371,6 @@ void __kernel lktracker_stage1( const float3 border_limits, const float eig_const, const int level0, - const int term_iteration, const int term_epsilon) { int idx = get_global_id(0); @@ -512,10 +514,7 @@ void __kernel lktracker_stage1( // Update previous delta prev_delta = delta; - if(term_iteration == 1) - { - j++; - } + j++; } new_points[idx].xy = out_new_point; |