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

Method makeSinCosTables

ij/src/main/java/ij/process/FHT.java:213–224  ·  view source on GitHub ↗
(int maxN)

Source from the content-addressed store, hash-verified

211 }
212
213 void makeSinCosTables(int maxN) {
214 int n = maxN/4;
215 C = new float[n];
216 S = new float[n];
217 double theta = 0.0;
218 double dTheta = 2.0 * Math.PI/maxN;
219 for (int i=0; i<n; i++) {
220 C[i] = (float)Math.cos(theta);
221 S[i] = (float)Math.sin(theta);
222 theta += dTheta;
223 }
224 }
225
226 void makeBitReverseTable(int maxN) {
227 bitrev = new int[maxN];

Callers 1

initializeTablesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected