diff options
Diffstat (limited to 'src/core/CL/cl_kernels/canny.cl')
-rw-r--r-- | src/core/CL/cl_kernels/canny.cl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/CL/cl_kernels/canny.cl b/src/core/CL/cl_kernels/canny.cl index bb83eeef88..9bfa2f4d16 100644 --- a/src/core/CL/cl_kernels/canny.cl +++ b/src/core/CL/cl_kernels/canny.cl @@ -356,6 +356,12 @@ kernel void hysteresis( return; } + // Return if it is a MAYBE pixel. Such pixels will become edges if near a strong edge + if(val <= up_thr) + { + return; + } + // Init local stack 2 short2 stack_L2[hysteresis_local_stack_L2] = { 0 }; int L2_counter = 0; |