16 #ifndef _SUTRA_CENTROIDER_PYR_H_
17 #define _SUTRA_CENTROIDER_PYR_H_
42 throw "method unknown";
46 template <
class Tin,
class T>
65 int get_pyr(
float *cube,
float *intensities, T *centroids,
int *subindx,
66 int *subindy,
int nvalid,
int ns,
int nim);
68 int npix,
int ntot, cudaStream_t stream=0);
69 int get_cog(
float *intensities, T *slopes,
bool noise);
78 void pyr_slopes(T *d_odata, T *d_idata,
int *subindx,
int *subindy,
79 float *intensities,
int ns,
int nvalid,
int nim,
83 void pyr2_slopes(T *d_odata, T *ref, T *d_idata,
int *subindx,
int *subindy,
84 float *intensities,
int ns,
int nvalid,
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_pyr features to COMPASS
int get_cog(float *cube, float *intensities, T *centroids, int nvalid, int npix, int ntot, cudaStream_t stream=0)
int get_cog(float *intensities, T *slopes, bool noise)
SutraCentroiderPyr(const SutraCentroiderPyr ¢roider)
int set_method(Method_CoG method)
int set_valid_thresh(T valid_thresh)
int get_pyr(float *cube, float *intensities, T *centroids, int *subindx, int *subindy, int nvalid, int ns, int nim)
SutraCentroiderPyr(CarmaContext *context, SutraWfs *wfs, long nvalid, float offset, float scale, bool filter_TT, int device)
this class provides the wfs features to COMPASS
Method_CoG(uint8_t method)
static const char * str(const struct Method_CoG &method)
Method_CoG(bool isLocal_=false, bool isSinus_=true)
SlopeOrder slope_order(std::size_t value)
void pyr_slopes(T *d_odata, T *d_idata, int *subindx, int *subindy, float *intensities, int ns, int nvalid, int nim, SlopeOrder slope_order, CarmaDevice *device)
void pyr2_slopes(T *d_odata, T *ref, T *d_idata, int *subindx, int *subindy, float *intensities, int ns, int nvalid, float scale, T valid_thresh, int do_sin, SlopeOrder slope_order, CarmaDevice *device)