I'm working on a project that requires a Fourier transform of a 2D array.
However, I'm far from being an expert with both FFT's or particularly vDSP.
I've seen some examples here, here or here but they are either for 1D arrays or I can't quite understand them.
What I wish to trasform is this array that I build as follows:
if (!_double2DArray) {
_double2DArray = (double**) malloc([traces count]*sizeof(double*));
}
for (NSInteger i=0; i<[traces count]; i++) {
Trace *trace = [traces objectAtIndex:i];
_double2DArray[i] = (double*) malloc(length*sizeof(double));
NSMutableArray *traceAxis = [trace getTraceAxis:axis];
for (NSInteger j=0; j<[[trace traceLength] integerValue]; j++) {
_double2DArray[i][j] = [[traceAxis objectAtIndex:j] doubleValue];
}
}