}
}
// Transform into frequency space
fft.transform2D(ar[0], ar[1], cols, rows, true);
fft.transform2D(gb[0], gb[1], cols, rows, true);
// Multiply the transformed pixels by the transformed kernel
i = 0;
for (int y = 0; y < h; y++) {
for (int x = 0; x < w; x++) {