Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/guide/internalguide/imageautoguiding.cpp
Context not available. | |||||
7 | version 2 of the License, or (at your option) any later version. | 7 | version 2 of the License, or (at your option) any later version. | ||
---|---|---|---|---|---|
8 | */ | 8 | */ | ||
9 | 9 | | |||
10 | #include "imageautoguiding.h" | ||||
11 | | ||||
12 | #include <QtGlobal> | ||||
13 | | ||||
10 | #include <math.h> | 14 | #include <math.h> | ||
11 | #include <stddef.h> | 15 | #include <stddef.h> | ||
12 | #include <stdio.h> | 16 | #include <stdio.h> | ||
13 | #include <stdlib.h> | 17 | #include <stdlib.h> | ||
14 | #include "imageautoguiding.h" | | |||
15 | 18 | | |||
16 | #define SWAP(a, b) \ | 19 | #define SWAP(a, b) \ | ||
17 | tempr = (a); \ | 20 | tempr = (a); \ | ||
Context not available. | |||||
215 | float c1, c2, h1r, h1i, h2r, h2i; | 218 | float c1, c2, h1r, h1i, h2r, h2i; | ||
216 | float wi, wr; | 219 | float wi, wr; | ||
217 | 220 | | |||
218 | if (1 + &data[nn1][nn2][nn3] - &data[1][1][1] != nn1 * nn2 * nn3) | 221 | if ((unsigned long)(1 + &data[nn1][nn2][nn3] - &data[1][1][1]) != nn1 * nn2 * nn3) | ||
219 | nrerrorNR(); | 222 | nrerrorNR(); | ||
220 | c1 = 0.5; | 223 | c1 = 0.5; | ||
221 | c2 = -0.5 * isign; | 224 | c2 = -0.5 * isign; | ||
Context not available. | |||||
289 | { | 292 | { | ||
290 | long idim; | 293 | long idim; | ||
291 | unsigned long i1, i2rev, i3rev, ip1, ip2, ip3, ifp1, ifp2; | 294 | unsigned long i1, i2rev, i3rev, ip1, ip2, ip3, ifp1, ifp2; | ||
292 | register unsigned long i2, i3; | 295 | unsigned long i2, i3; | ||
293 | unsigned long ibit, k1, k2, n, nprev, nrem, ntot; | 296 | unsigned long ibit, k1, k2, n, nprev, nrem, ntot; | ||
294 | float wi, wr, tempi, tempr; | 297 | float wi, wr, tempi, tempr; | ||
295 | double theta, wpi, wpr, wtemp; | 298 | double theta, wpi, wpr, wtemp; | ||
Context not available. | |||||
440 | void free_matrixSP(float **m, long nrl, long nrh, long ncl, long nch) | 443 | void free_matrixSP(float **m, long nrl, long nrh, long ncl, long nch) | ||
441 | /* free a float matrix allocated by matrix() */ | 444 | /* free a float matrix allocated by matrix() */ | ||
442 | { | 445 | { | ||
446 | Q_UNUSED(nrh); | ||||
447 | Q_UNUSED(nch); | ||||
443 | free((FREE_ARG)(m[nrl] + ncl - NR_END)); | 448 | free((FREE_ARG)(m[nrl] + ncl - NR_END)); | ||
444 | free((FREE_ARG)(m + nrl - NR_END)); | 449 | free((FREE_ARG)(m + nrl - NR_END)); | ||
445 | } | 450 | } | ||
Context not available. | |||||
447 | void free_f3tensorSP(float ***t, long nrl, long nrh, long ncl, long nch, long ndl, long ndh) | 452 | void free_f3tensorSP(float ***t, long nrl, long nrh, long ncl, long nch, long ndl, long ndh) | ||
448 | /* free a float f3tensor allocated by f3tensor() */ | 453 | /* free a float f3tensor allocated by f3tensor() */ | ||
449 | { | 454 | { | ||
455 | Q_UNUSED(nrh); | ||||
456 | Q_UNUSED(nch); | ||||
457 | Q_UNUSED(ndh); | ||||
450 | free((FREE_ARG)(t[nrl][ncl] + ndl - NR_END)); | 458 | free((FREE_ARG)(t[nrl][ncl] + ndl - NR_END)); | ||
451 | free((FREE_ARG)(t[nrl] + ncl - NR_END)); | 459 | free((FREE_ARG)(t[nrl] + ncl - NR_END)); | ||
452 | free((FREE_ARG)(t + nrl - NR_END)); | 460 | free((FREE_ARG)(t + nrl - NR_END)); | ||
Context not available. |