06-27-2012 07:29 AM
I notice actually now that the first element in the matrix at position (0,0) for the 16x16 matrix is 0 + 0i.
Then doing division by zero leads to NaN. Putting a matrix with one value NaN into the inverse FFT method gives out an array of NaN.
I guess I'll just replace the first element in the array at position (0,0) to some non-zero value and it'll work. I don't really understand why this is the case.
06-27-2012 08:27 AM
Why don't you simply use the 2D cross correlation?
(Here's a very rought draft. probably needs quite a few tweaks) 😉
06-27-2012 09:03 AM
You're absolutely right, but the whole pursuit was to compare the two with each other. See which one is faster or better for my set of data and if I can do things better than NI.
Another objective was to put the algorithm on the FPGA.