16 #ifndef _SUTRA_CENTROIDER_MASKEDPIX_H_
17 #define _SUTRA_CENTROIDER_MASKEDPIX_H_
23 template <
class Tin,
class T>
38 int get_maskedPix(
float *img,
float *intensities, T *centroids,
int *subindx,
39 int *subindy,
int ns, cudaStream_t stream=0);
41 int npix,
int ntot, cudaStream_t stream=0);
42 int get_cog(
float *intensities, T *slopes,
bool noise);
49 int *subindy,
int ns,
int nslopes,
CarmaDevice *device, cudaStream_t stream=0);
51 void get_masked_pix(T *centroids, T *ref,
float *img,
int *subindx,
int *subindy,
52 float *psum,
int ns,
int nslopes,
CarmaDevice *device, cudaStream_t stream=0);
this class provides the context in which CarmaObj are created
this class provides the centroider features to COMPASS
this class provides the centroider_maskedPix features to COMPASS
CarmaObj< T > * d_selected_pix
int get_cog(float *intensities, T *slopes, bool noise)
SutraCentroiderMaskedPix(CarmaContext *context, SutraWfs *wfs, long nvalid, float offset, float scale, bool filter_TT, int device)
int fill_selected_pix(T *pix)
~SutraCentroiderMaskedPix()
int get_cog(float *img, float *intensities, T *centroids, int nvalid, int npix, int ntot, cudaStream_t stream=0)
int get_maskedPix(float *img, float *intensities, T *centroids, int *subindx, int *subindy, int ns, cudaStream_t stream=0)
this class provides the wfs features to COMPASS
void pyr_fill_selected_pix(T *img, int img_sizex, T *pix, int *subindx, int *subindy, int nvalid, CarmaDevice *device)
void pyr_fill_mask(T *mask, int img_sizex, int *subindx, int *subindy, int nvalid, CarmaDevice *device)
void fill_intensities(float *intensities, float *img, int *subindx, int *subindy, int ns, int nslopes, CarmaDevice *device, cudaStream_t stream=0)
void get_masked_pix(T *centroids, T *ref, float *img, int *subindx, int *subindy, float *psum, int ns, int nslopes, CarmaDevice *device, cudaStream_t stream=0)