MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / FHTimag

Method FHTimag

ij/src/main/java/ij/process/FHT.java:507–513  ·  view source on GitHub ↗

FFT imag value of one row from 2D Hartley Transform. Author: Joachim Wesner

(int row, int maxN, float[] fht, float[] imag)

Source from the content-addressed store, hash-verified

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];

Callers 1

getComplexTransformMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected