18 #ifndef _SUTRA_CENTROIDER_WCOG_H_
19 #define _SUTRA_CENTROIDER_WCOG_H_
23 template <
class Tin,
class T>
43 int npix,
int ntot, cudaStream_t stream=0);
44 int get_cog(
float *intensities, T *slopes,
bool noise);
49 void get_centroids(
int size,
int threads,
int blocks,
int n,
float *d_idata,
50 T *d_odata, T *ref,
int *validx,
int *validy,
51 float *intensities,
float *d_weights,
float threshold,
float scale,
this class provides the context in which CarmaObj are created
this class provides the centroider features to COMPASS
this class provides the centroider_wcog features to COMPASS
int set_threshold(float threshold)
CarmaObj< float > * d_weights
int load_weights(float *weights, int ndim)
SutraCentroiderWcog(CarmaContext *context, SutraWfs *wfs, long nvalid, float offset, float scale, bool filter_TT, int device)
int get_cog(float *intensities, T *slopes, bool noise)
int get_cog(float *cube, float *intensities, T *centroids, int nvalid, int npix, int ntot, cudaStream_t stream=0)
SutraCentroiderWcog(const SutraCentroiderWcog ¢roider)
this class provides the wfs features to COMPASS
SlopeOrder slope_order(std::size_t value)
void get_centroids(int size, int threads, int blocks, int n, float *d_idata, T *d_odata, T *ref, int *validx, int *validy, float *intensities, float *d_weights, float threshold, float scale, float offset, SlopeOrder slope_order, CarmaDevice *device)
int fill_weights(T *d_out, T *d_in, int npix, int N, CarmaDevice *device)