50 for(uint j = 0; j < src_step_x; j += 16)
52 barrier(CLK_GLOBAL_MEM_FENCE);
53 uint16 res = convert_uint16(vload16(0,
offset(&src, j, 0)));
71 vstore16(res, 0, (__global uint *)
offset(&dst, j, 0));
91 uint8 prev = vload8(0, (__global uint *)
offset(&src, 0, 0));
92 for(uint j = 1; j < height; ++j)
94 barrier(CLK_GLOBAL_MEM_FENCE);
95 uint8 res = vload8(0, (__global uint *)
offset(&src, 0, j));
97 vstore8(res, 0, (__global uint *)
offset(&src, 0, j));
__kernel void integral_horizontal(__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes)
This function computes the horizontal integral of the image.
#define IMAGE_DECLARATION(name)
__kernel void integral_vertical(__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, uint height)
This function computes the vertical integral of the image.
__global uchar * offset(const Image *img, int x, int y)
Get the pointer position of a Image.
#define CONVERT_TO_IMAGE_STRUCT(name)
Structure to hold Image information.
convolution configure & src