// OpenCL卷积核
__kernel void convolution(__global const float *restrict inputImage,
__global float *restrict outputImage,
__constant const float *restrict filter,
const int filterWidth)
{
// 計算濾波器寬度的一半
int half_filter_width = filterWidth >> 1;
// 獲取圖像的寬度和高度