Commit 0dd00321 authored by Alexander Alekhin's avatar Alexander Alekhin Committed by GitHub

Merge pull request #7072 from alalek:ocl_fix_canny

parents df665e23 b8e08d5d
...@@ -260,7 +260,7 @@ __kernel void stage1_with_sobel(__global const uchar *src, int src_step, int src ...@@ -260,7 +260,7 @@ __kernel void stage1_with_sobel(__global const uchar *src, int src_step, int src
#ifdef L2GRAD #ifdef L2GRAD
#define dist(x, y) ((int)(x) * (x) + (int)(y) * (y)) #define dist(x, y) ((int)(x) * (x) + (int)(y) * (y))
#else #else
#define dist(x, y) (abs(x) + abs(y)) #define dist(x, y) (abs((int)(x)) + abs((int)(y)))
#endif #endif
__constant int prev[4][2] = { __constant int prev[4][2] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment