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

this class provides the centroider_tcog features to COMPASS More...

#include <sutra_centroider_tcog.h>

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

Public Member Functions

 SutraCentroiderTcog (CarmaContext *context, SutraWfs *wfs, long nvalid, float offset, float scale, bool filter_TT, int device)
 
 SutraCentroiderTcog (const SutraCentroiderTcog &centroider)
 
 ~SutraCentroiderTcog ()
 
string get_type ()
 
int set_threshold (float threshold)
 
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

float threshold
 
- 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 SutraCentroiderTcog< Tin, T >

this class provides the centroider_tcog features to COMPASS

Author
COMPASS Team https://github.com/ANR-COMPASS
Version
5.4.4
Date
2022/01/24

Definition at line 24 of file sutra_centroider_tcog.h.

Constructor & Destructor Documentation

◆ SutraCentroiderTcog() [1/2]

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

◆ SutraCentroiderTcog() [2/2]

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

◆ ~SutraCentroiderTcog()

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

Member Function Documentation

◆ get_cog() [1/3]

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

◆ get_cog() [2/3]

template<class Tin , class T >
int SutraCentroiderTcog< 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 SutraCentroiderTcog< Tin, T >::get_cog ( float *  intensities,
T *  slopes,
bool  noise 
)
virtual

◆ get_type()

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

◆ set_threshold()

template<class Tin , class T >
int SutraCentroiderTcog< Tin, T >::set_threshold ( float  threshold)

Member Data Documentation

◆ threshold

template<class Tin , class T >
float SutraCentroiderTcog< Tin, T >::threshold

Definition at line 26 of file sutra_centroider_tcog.h.


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