}
dst_sq_offset += dst_sq_step;
- dst_sq = (__global sumSQT *)(dst_sq_ptr + mad24(x, dst_sq_step, dst_sq_offset));
- dst_sq[0] = 0;
+ if (x < rows - 1)
+ {
+ dst_sq = (__global sumSQT *)(dst_sq_ptr + mad24(x, dst_sq_step, dst_sq_offset));
+ dst_sq[0] = 0;
+ }
int buf_sq_index = mad24((int)sizeof(sumSQT), x, buf_sq_offset);
sumSQT accum_sq = 0;
OCL_ON(cv::integral(usrc_roi, udst_roi, udst2_roi, sdepth, sqdepth));
Near();
- sqdepth == CV_32F ? Near2(2e-4, true) : Near2();
+ sqdepth == CV_32F ? Near2(1e-6, true) : Near2();
}
}