I'm using VSL to do a 2D image convolution (based on FFT). The documention doesn't seem to discuss how to handle image borders. From the convolution output, it looks like the implementation is padding the borders with zero (black pixels).
Is there a way to change its behavior to repeat the border pixels? Or to mirror the image?
If not, how can I achieve this? Do I have to manually pad my input data? Or does the FFT library in MKL provide a more efficient way for me to do this?