next up previous contents
Next: spectral Up: Implementation Previous: Implementation   Contents

spatialconv

The complex interferogram is convoluted with a kernel by FFT's. The card PF_KERNEL specifies the 1D kernel. The 2D kernel is computed as: PF_KERNEL$ ^T$ PF_KERNEL, e.g. for a 3 point moving average 1D kernel

$\displaystyle \frac{1}{3} \left[1 1 1\right]$ (1)

This becomes

$\displaystyle \frac{1}{9} \left[ \begin{array}{ccc} 1 & 1 & 1\\ 1 & 1 & 1\\ 1 & 1 & 1 \end{array} \right]$ (2)

The blocksize for the convolution is chosen as high as possible. A 2D kernel can be specified in an input file. Only odd sized kernels can be used, but simply add a zero to an odd kernel.

If a real4 matrix containing phase should be convoluted by a certain kernel, first convert this real4 to a complex real4 matrix. Do this either by computing the phase for complex umbers with amplitude 1, or by setting the real part of the file to the phase and the imaginary part to 1 (arbitrary).



Leijen 2009-04-14