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

Method transposeR

ij/src/main/java/ij/process/FHT.java:354–367  ·  view source on GitHub ↗
(float[] x, int maxN)

Source from the content-addressed store, hash-verified

352 }
353
354 void transposeR (float[] x, int maxN) {
355 int r, c;
356 float rTemp;
357
358 for (r=0; r<maxN; r++) {
359 for (c=r; c<maxN; c++) {
360 if (r != c) {
361 rTemp = x[r*maxN + c];
362 x[r*maxN + c] = x[c*maxN + r];
363 x[c*maxN + r] = rTemp;
364 }
365 }
366 }
367 }
368
369 int log2 (int x) {
370 int count = 31;

Callers 1

rc2DFHTMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected