Commit b25abdc2 authored by Téo Mazars's avatar Téo Mazars

opencl: fix a compilation error of the last commit for edge-laplace

but the test is still not fixed
parent 05669339
......@@ -101,8 +101,8 @@ kernel void pre_edgelaplace (global float4 *in,
fmax((maxval - pix_mm[c]),(pix_mm[c] - minval));
gradient[c] =
(pix_fl[c] + pix_fm[c] + pix_fr[c] +
pix_bm[c] - 8.0f * pix_mm[c]+ pix_br[c]
pix_ml[c] + pix_mr[c] + pix_bl[c] +) <
pix_bm[c] - 8.0f * pix_mm[c] + pix_br[c] +
pix_ml[c] + pix_mr[c] + pix_bl[c]) <
EPSILON ? -1.0f * gradient[c] : gradient[c];
}
gradient[3] = pix_mm[3];
......
......@@ -102,8 +102,8 @@ static const char* edge_laplace_cl_source =
" fmax((maxval - pix_mm[c]),(pix_mm[c] - minval)); \n"
" gradient[c] = \n"
" (pix_fl[c] + pix_fm[c] + pix_fr[c] + \n"
" pix_bm[c] - 8.0f * pix_mm[c]+ pix_br[c] \n"
" pix_ml[c] + pix_mr[c] + pix_bl[c] +) < \n"
" pix_bm[c] - 8.0f * pix_mm[c] + pix_br[c] + \n"
" pix_ml[c] + pix_mr[c] + pix_bl[c]) < \n"
" EPSILON ? -1.0f * gradient[c] : gradient[c]; \n"
" } \n"
" gradient[3] = pix_mm[3]; \n"
......
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