- xcorr2 allows you to use gpuArrays which will allow you to use the Parallel Computing Toolbox. This method has two caveats; the prerequisites to use this method are: (1) Parallel Computing Toolbox, (2) A CUDA-enabled GPU
- Instead of using xcrorr2 you could use the imregcorr function that is designed to work with images.
- To use this function you would need to have the Image Processing Toolbox
- You can find more details about this function in the following link: