Merge pull request #7072 from alalek:ocl_fix_canny

This commit is contained in:
Alexander Alekhin 2016-08-10 13:44:52 +03:00 committed by GitHub
commit 0dd00321e0

View File

@ -260,7 +260,7 @@ __kernel void stage1_with_sobel(__global const uchar *src, int src_step, int src
#ifdef L2GRAD
#define dist(x, y) ((int)(x) * (x) + (int)(y) * (y))
#else
#define dist(x, y) (abs(x) + abs(y))
#define dist(x, y) (abs((int)(x)) + abs((int)(y)))
#endif
__constant int prev[4][2] = {