 |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
Go to the documentation of this file.
47 #ifndef _SUTRA_CENTROIDER_PYR_H_
48 #define _SUTRA_CENTROIDER_PYR_H_
69 if (method.is_sinus && !method.is_local)
return "sinus global";
70 if (!method.is_sinus && !method.is_local)
return "nosinus global";
71 if (method.is_sinus && method.is_local)
return "sinus local";
72 if (!method.is_sinus && method.is_local)
return "nosinus local";
73 throw "method unknown";
77 template <
class Tin,
class T>
96 int get_pyr(
float *cube,
float *intensities, T *centroids,
int *subindx,
97 int *subindy,
int nvalid,
int ns,
int nim);
99 int npix,
int ntot, cudaStream_t stream=0);
100 int get_cog(
float *intensities, T *slopes,
bool noise);
109 void pyr_slopes(T *d_odata, T *d_idata,
int *subindx,
int *subindy,
110 float *intensities,
int ns,
int nvalid,
int nim,
114 void pyr2_slopes(T *d_odata, T *ref, T *d_idata,
int *subindx,
int *subindy,
115 float *intensities,
int ns,
int nvalid,
float scale,
117 #endif // _SUTRA_CENTROIDER_PYR_H_
void pyr_slopes(T *d_odata, T *d_idata, int *subindx, int *subindy, float *intensities, int ns, int nvalid, int nim, CarmaDevice *device)
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(CarmaContext *context, SutraWfs *wfs, long nvalid, float offset, float scale, bool filter_TT, int 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, CarmaDevice *device)
SutraCentroiderPyr(const SutraCentroiderPyr ¢roider)
this class provides the wfs features to COMPASS
this class provides the centroider_pyr features to COMPASS
int set_valid_thresh(T valid_thresh)
static const char * str(const struct Method_CoG &method)
Method_CoG(uint8_t method)
this class provides the context in which CarmaObj are created
this class provides the centroider features to COMPASS
int set_method(Method_CoG method)
Method_CoG(bool isLocal_=false, bool isSinus_=true)
int get_pyr(float *cube, float *intensities, T *centroids, int *subindx, int *subindy, int nvalid, int ns, int nim)