FFT real value of one row from 2D Hartley Transform. Author: Joachim Wesner
(int row, int maxN, float[] fht, float[] real)
| 493 | * Author: Joachim Wesner |
| 494 | */ |
| 495 | void FHTreal(int row, int maxN, float[] fht, float[] real) { |
| 496 | int base = row*maxN; |
| 497 | int offs = ((maxN-row)%maxN) * maxN; |
| 498 | for (int c=0; c<maxN; c++) { |
| 499 | real[base+c] = (fht[base+c] + fht[offs+((maxN-c)%maxN)])*0.5f; |
| 500 | } |
| 501 | } |
| 502 | |
| 503 | |
| 504 | /** FFT imag value of one row from 2D Hartley Transform. |