COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
SutraCentroiderBpcog< Tin, T > Class Template Reference

#include <sutra_centroider_bpcog.h>

Inheritance diagram for SutraCentroiderBpcog< Tin, T >:
Collaboration diagram for SutraCentroiderBpcog< Tin, T >:

Public Member Functions

 SutraCentroiderBpcog (CarmaContext *context, SutraWfs *wfs, long nvalid, float offset, float scale, bool filter_TT, int device, int nmax)
 
 SutraCentroiderBpcog (const SutraCentroiderBpcog &centroider)
 
 ~SutraCentroiderBpcog ()
 
string get_type ()
 
int init_nmax (int nmax)
 
int set_nmax (int nmax)
 
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)
 
int get_cog ()
 
- Public Member Functions inherited from SutraCentroider< Tin, T >
virtual ~SutraCentroider ()
 
int set_scale (float scale)
 
int set_offset (float offset)
 
int set_dark (float *dark, int n)
 
int set_flat (float *flat, int n)
 
int set_lutPix (int *lutPix, int n)
 
int init_calib (int n, int m)
 
int init_roi (int N)
 
int set_centroids_ref (float *centroids_ref)
 
int calibrate_img_validPix ()
 
int calibrate_img_validPix (cudaStream_t stream)
 
int calibrate_img ()
 
int calibrate_img (cudaStream_t stream)
 
int load_validpos (int *ivalid, int *jvalid, int N)
 
int set_npix (int npix)
 
int set_nxsub (int nxsub)
 
int load_img (Tin *img, int n)
 
int load_img (Tin *img, int n, int location)
 
int load_img (Tin *img, int m, int n, int location)
 
int load_img (CarmaObj< Tin > *img)
 
int init_img_raw (int m, int n)
 
int get_validMask ()
 
bool is_type (string typec)
 
int init_TT_filter ()
 
int apply_TT_filter (T *centroids)
 

Public Attributes

int nmax
 
CarmaObj< T > * d_bpix
 
CarmaObj< uint > * d_bpind
 
- Public Attributes inherited from SutraCentroider< Tin, T >
int device
 
SutraWfswfs
 
int nvalid
 
int nslopes
 
int npix
 
int nxsub
 
bool filter_TT
 
float offset
 
float scale
 
SlopeOrder slope_order
 
CarmaContextcurrent_context
 
CarmaObj< T > * d_bincube
 
CarmaObj< float > * d_intensities
 
CarmaObj< T > * d_centroids_ref
 
CarmaObj< float > * d_img
 
CarmaObj< Tin > * d_img_raw
 
CarmaObj< float > * d_dark
 
CarmaObj< float > * d_flat
 
CarmaObj< int > * d_lutPix
 
CarmaObj< int > * d_validx
 
CarmaObj< int > * d_validy
 
CarmaObj< int > * d_validMask
 
CarmaObj< float > * d_centro_filtered
 
CarmaObj< float > * d_ref_Tip
 
CarmaObj< float > * d_ref_Tilt
 
CarmaObj< float > * d_TT_slopes
 

Additional Inherited Members

- Protected Member Functions inherited from SutraCentroider< Tin, T >
 SutraCentroider (CarmaContext *context, SutraWfs *wfs, long nvalid, float offset, float scale, bool filter_TT, int device)
 

Detailed Description

template<class Tin, class T>
class SutraCentroiderBpcog< Tin, T >

Definition at line 23 of file sutra_centroider_bpcog.h.

Constructor & Destructor Documentation

◆ SutraCentroiderBpcog() [1/2]

template<class Tin , class T >
SutraCentroiderBpcog< Tin, T >::SutraCentroiderBpcog ( CarmaContext context,
SutraWfs wfs,
long  nvalid,
float  offset,
float  scale,
bool  filter_TT,
int  device,
int  nmax 
)

◆ SutraCentroiderBpcog() [2/2]

template<class Tin , class T >
SutraCentroiderBpcog< Tin, T >::SutraCentroiderBpcog ( const SutraCentroiderBpcog< Tin, T > &  centroider)

◆ ~SutraCentroiderBpcog()

template<class Tin , class T >
SutraCentroiderBpcog< Tin, T >::~SutraCentroiderBpcog ( )

Member Function Documentation

◆ get_cog() [1/3]

template<class Tin , class T >
int SutraCentroiderBpcog< Tin, T >::get_cog ( )
virtual

◆ get_cog() [2/3]

template<class Tin , class T >
int SutraCentroiderBpcog< Tin, T >::get_cog ( float *  cube,
float *  intensities,
T *  centroids,
int  nvalid,
int  npix,
int  ntot,
cudaStream_t  stream = 0 
)
virtual

◆ get_cog() [3/3]

template<class Tin , class T >
int SutraCentroiderBpcog< Tin, T >::get_cog ( float *  intensities,
T *  slopes,
bool  noise 
)
virtual

◆ get_type()

template<class Tin , class T >
string SutraCentroiderBpcog< Tin, T >::get_type ( )
virtual

◆ init_nmax()

template<class Tin , class T >
int SutraCentroiderBpcog< Tin, T >::init_nmax ( int  nmax)

◆ set_nmax()

template<class Tin , class T >
int SutraCentroiderBpcog< Tin, T >::set_nmax ( int  nmax)

Member Data Documentation

◆ d_bpind

template<class Tin , class T >
CarmaObj<uint>* SutraCentroiderBpcog< Tin, T >::d_bpind

Definition at line 27 of file sutra_centroider_bpcog.h.

◆ d_bpix

template<class Tin , class T >
CarmaObj<T>* SutraCentroiderBpcog< Tin, T >::d_bpix

Definition at line 26 of file sutra_centroider_bpcog.h.

◆ nmax

template<class Tin , class T >
int SutraCentroiderBpcog< Tin, T >::nmax

Definition at line 25 of file sutra_centroider_bpcog.h.


The documentation for this class was generated from the following file: