FFT imag value of one row from 2D Hartley Transform. Author: Joachim Wesner
(int row, int maxN, float[] fht, float[] imag)
| 505 | * Author: Joachim Wesner |
| 506 | */ |
| 507 | void FHTimag(int row, int maxN, float[] fht, float[] imag) { |
| 508 | int base = row*maxN; |
| 509 | int offs = ((maxN-row)%maxN) * maxN; |
| 510 | for (int c=0; c<maxN; c++) { |
| 511 | imag[base+c] = (-fht[base+c] + fht[offs+((maxN-c)%maxN)])*0.5f; |
| 512 | } |
| 513 | } |
| 514 | |
| 515 | ImageProcessor calculateAmplitude(float[] fht, int maxN) { |
| 516 | float[] amp = new float[maxN*maxN]; |