(float[] fht, int maxN)
| 513 | } |
| 514 | |
| 515 | ImageProcessor calculateAmplitude(float[] fht, int maxN) { |
| 516 | float[] amp = new float[maxN*maxN]; |
| 517 | for (int row=0; row<maxN; row++) { |
| 518 | amplitude(row, maxN, fht, amp); |
| 519 | } |
| 520 | ImageProcessor ip = new FloatProcessor(maxN, maxN, amp, null); |
| 521 | swapQuadrants(ip); |
| 522 | return ip; |
| 523 | } |
| 524 | |
| 525 | /** Amplitude of one row from 2D Hartley Transform. */ |
| 526 | void amplitude(int row, int maxN, float[] fht, float[] amplitude) { |
nothing calls this directly
no test coverage detected