 |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
Go to the documentation of this file.
43 #ifndef _SUTRA_CENTROIDER_CORR_H_
44 #define _SUTRA_CENTROIDER_CORR_H_
48 template <
class Tin,
class T>
70 int init_corr(
int isizex,
int isizey, T *interpmat);
76 int npix,
int ntot, cudaStream_t stream=0);
77 int get_cog(
float *intensities, T *slopes,
bool noise);
82 void subap_sortmaxi(
int threads,
int blocks, T *d_idata,
int *values,
int nmax,
83 int offx,
int offy,
int npix,
int Npix);
86 T *d_centroids, T *d_matinterp,
int sizex,
int sizey,
87 int nvalid,
int Npix,
float scale,
float offset);
89 template <
class Tcu,
class T>
90 int fillcorr(Tcu *d_out, T *d_in,
int npix_in,
int npix_out,
int N,
int nvalid,
96 template <
class Tcu,
class T>
97 int roll2real(T *d_odata, Tcu *d_idata,
int n,
int Npix,
int N,
103 #endif // _SUTRA_CENTROIDER_CORR_H_
this class provides the centroider_corr features to COMPASS
void subap_pinterp(int threads, int blocks, T *d_idata, int *values, T *d_centroids, T *d_matinterp, int sizex, int sizey, int nvalid, int Npix, float scale, float offset)
CarmaObj< cuFloatComplex > * d_corrfnct
int fillcorr(Tcu *d_out, T *d_in, int npix_in, int npix_out, int N, int nvalid, CarmaDevice *device)
int get_cog(float *cube, float *intensities, T *centroids, int nvalid, int npix, int ntot, cudaStream_t stream=0)
int correl(T *d_odata, T *d_idata, int N, CarmaDevice *device)
this class provides the wfs features to COMPASS
int get_cog(float *intensities, T *slopes, bool noise)
CarmaObj< int > * d_corrmax
void subap_sortmaxi(int threads, int blocks, T *d_idata, int *values, int nmax, int offx, int offy, int npix, int Npix)
SutraCentroiderCorr(const SutraCentroiderCorr ¢roider)
int load_corr(T *corr, T *corr_norm, int ndim)
int init_corr(int isizex, int isizey, T *interpmat)
this class provides the context in which CarmaObj are created
this class provides the centroider features to COMPASS
int corr_norm(T *d_odata, T *d_idata, int Npix, int N, CarmaDevice *device)
SutraCentroiderCorr(CarmaContext *context, SutraWfs *wfs, long nvalid, float offset, float scale, bool filter_TT, int device)
int roll2real(T *d_odata, Tcu *d_idata, int n, int Npix, int N, CarmaDevice *device)
CarmaObj< T > * d_interpmat
CarmaObj< cuFloatComplex > * d_corrspot
CarmaObj< T > * d_corrnorm