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

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

#include <sutra_centroider_corr.h>

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

Public Member Functions

 SutraCentroiderCorr (CarmaContext *context, SutraWfs *wfs, long nvalid, float offset, float scale, bool filter_TT, int device)
 
 SutraCentroiderCorr (const SutraCentroiderCorr &centroider)
 
 ~SutraCentroiderCorr ()
 
string get_type ()
 
int fill_bincube (T *img)
 
int init_corr (int isizex, int isizey, T *interpmat)
 
int load_corr (T *corr, T *corr_norm, int ndim)
 
int set_npix (int npix)
 
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 ()
 
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 npix
 
int interp_sizex
 
int interp_sizey
 
CarmaObj< cuFloatComplex > * d_corrfnct
 
CarmaObj< cuFloatComplex > * d_corrspot
 
CarmaObj< T > * d_corrnorm
 
CarmaObj< int > * d_corrmax
 
CarmaObj< T > * d_corr
 
CarmaObj< T > * d_interpmat
 
- 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
 
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 SutraCentroiderCorr< Tin, T >

this class provides the centroider_corr features to COMPASS

Author
COMPASS Team https://github.com/ANR-COMPASS
Version
5.0.0
Date
2011/01/28

Definition at line 49 of file sutra_centroider_corr.h.

Constructor & Destructor Documentation

◆ SutraCentroiderCorr() [1/2]

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

◆ SutraCentroiderCorr() [2/2]

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

◆ ~SutraCentroiderCorr()

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

Member Function Documentation

◆ fill_bincube()

template<class Tin , class T >
int SutraCentroiderCorr< Tin, T >::fill_bincube ( T *  img)

◆ get_cog() [1/3]

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

◆ get_cog() [2/3]

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

◆ get_type()

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

◆ init_corr()

template<class Tin , class T >
int SutraCentroiderCorr< Tin, T >::init_corr ( int  isizex,
int  isizey,
T *  interpmat 
)

◆ load_corr()

template<class Tin , class T >
int SutraCentroiderCorr< Tin, T >::load_corr ( T *  corr,
T *  corr_norm,
int  ndim 
)

◆ set_npix()

template<class Tin , class T >
int SutraCentroiderCorr< Tin, T >::set_npix ( int  npix)

Member Data Documentation

◆ d_corr

template<class Tin , class T >
CarmaObj<T>* SutraCentroiderCorr< Tin, T >::d_corr

Definition at line 58 of file sutra_centroider_corr.h.

◆ d_corrfnct

template<class Tin , class T >
CarmaObj<cuFloatComplex>* SutraCentroiderCorr< Tin, T >::d_corrfnct

Definition at line 54 of file sutra_centroider_corr.h.

◆ d_corrmax

template<class Tin , class T >
CarmaObj<int>* SutraCentroiderCorr< Tin, T >::d_corrmax

Definition at line 57 of file sutra_centroider_corr.h.

◆ d_corrnorm

template<class Tin , class T >
CarmaObj<T>* SutraCentroiderCorr< Tin, T >::d_corrnorm

Definition at line 56 of file sutra_centroider_corr.h.

◆ d_corrspot

template<class Tin , class T >
CarmaObj<cuFloatComplex>* SutraCentroiderCorr< Tin, T >::d_corrspot

Definition at line 55 of file sutra_centroider_corr.h.

◆ d_interpmat

template<class Tin , class T >
CarmaObj<T>* SutraCentroiderCorr< Tin, T >::d_interpmat

Definition at line 59 of file sutra_centroider_corr.h.

◆ interp_sizex

template<class Tin , class T >
int SutraCentroiderCorr< Tin, T >::interp_sizex

Definition at line 52 of file sutra_centroider_corr.h.

◆ interp_sizey

template<class Tin , class T >
int SutraCentroiderCorr< Tin, T >::interp_sizey

Definition at line 53 of file sutra_centroider_corr.h.

◆ npix

template<class Tin , class T >
int SutraCentroiderCorr< Tin, T >::npix

Definition at line 51 of file sutra_centroider_corr.h.


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