| 198 | } |
| 199 | |
| 200 | void IPLComplexImage::Twiddle(Complex* x, int N) |
| 201 | { |
| 202 | double pi2 = PI / (double) N; |
| 203 | for( int i=0; i<N; i++ ) |
| 204 | { |
| 205 | double omega = pi2 * (double) i; |
| 206 | x[i] = Complex( cos(omega), sin(omega) ); |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | void IPLComplexImage::iTwiddle(Complex* x, int N) |
| 211 | { |