I am trying to use FFT as a fast way to convolve a image, however one of the downsides of this is that the "kernel" image will repeat when reaching the edges of the sample.
Is there a way to avoid this to make it more like a classic convolution, that cuts off at the edges?