mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
Merge pull request #7072 from alalek:ocl_fix_canny
This commit is contained in:
commit
0dd00321e0
@ -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] = {
|
||||
|
Loading…
Reference in New Issue
Block a user