18 #ifndef _SUTRA_CENTROIDER_CORR_H_
19 #define _SUTRA_CENTROIDER_CORR_H_
23 template <
class Tin,
class T>
44 int init_corr(
int isizex,
int isizey, T *interpmat);
48 int npix,
int ntot, cudaStream_t stream=0);
49 int get_cog(
float *intensities, T *slopes,
bool noise);
54 void subap_sortmaxi(
int threads,
int blocks, T *d_idata,
int *values,
int nmax,
55 int offx,
int offy,
int npix,
int Npix);
58 T *d_centroids, T *d_matinterp,
int sizex,
int sizey,
59 int nvalid,
int Npix,
float scale,
float offset);
61 template <
class Tcu,
class T>
62 int fillcorr(Tcu *d_out, T *d_in,
int npix_in,
int npix_out,
int N,
int nvalid,
68 template <
class Tcu,
class T>
69 int roll2real(T *d_odata, Tcu *d_idata,
int n,
int Npix,
int N,
this class provides the context in which CarmaObj are created
this class provides the centroider_corr features to COMPASS
int init_corr(int isizex, int isizey, T *interpmat)
SutraCentroiderCorr(CarmaContext *context, SutraWfs *wfs, long nvalid, float offset, float scale, bool filter_TT, int device)
int load_corr(T *corr, T *corr_norm, int ndim)
SutraCentroiderCorr(const SutraCentroiderCorr ¢roider)
int get_cog(float *intensities, T *slopes, bool noise)
CarmaObj< cuFloatComplex > * d_corrspot
CarmaObj< T > * d_corrnorm
CarmaObj< int > * d_corrmax
CarmaObj< T > * d_interpmat
CarmaObj< cuFloatComplex > * d_corrfnct
int get_cog(float *cube, float *intensities, T *centroids, int nvalid, int npix, int ntot, cudaStream_t stream=0)
this class provides the centroider features to COMPASS
this class provides the wfs features to COMPASS
int correl(T *d_odata, T *d_idata, int N, CarmaDevice *device)
int corr_norm(T *d_odata, T *d_idata, int Npix, int N, CarmaDevice *device)
int fillcorr(Tcu *d_out, T *d_in, int npix_in, int npix_out, int N, int nvalid, CarmaDevice *device)
int roll2real(T *d_odata, Tcu *d_idata, int n, int Npix, int N, CarmaDevice *device)
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)
void subap_sortmaxi(int threads, int blocks, T *d_idata, int *values, int nmax, int offx, int offy, int npix, int Npix)