![]() |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
#include <carma_utils.h>
#include <sutra_lgs.h>
#include <sutra_phase.h>
#include <sutra_target.h>
#include <sutra_telemetry.h>
#include <sutra_telescope.h>
#include <sutra_utils.h>
#include <map>
#include <vector>
Go to the source code of this file.
Classes | |
class | SutraWfs |
this class provides the wfs features to COMPASS More... | |
Functions | |
int | fillcamplipup (cuFloatComplex *amplipup, float *phase, float *offset, float *mask, float scale, int *istart, int *jstart, int *ivalid, int *jvalid, int nphase, int npup, int Nfft, int Ntot, CarmaDevice *device, int offset_phase) |
int | indexfill (cuFloatComplex *d_odata, cuFloatComplex *d_idata, int *indx, int nx, int Nx, int N, CarmaDevice *device) |
int | fillbincube (float *bcube, cuFloatComplex *hrimage, int *indxpix, int Nfft, int Npix, int Nrebin, int Nsub, CarmaDevice *device) |
int | fillbincube_async (CarmaStreams *streams, float *bcube, cuFloatComplex *hrimage, int *indxpix, int Nfft, int Npix, int Nrebin, int Nsub, CarmaDevice *device) |
int | fillbinimg (float *bimage, float *bcube, int npix, int nsub, int Nsub, int *ivalid, int *jvalid, bool add, CarmaDevice *device) |
int | fillbinimg_async (CarmaStreams *streams, CarmaObj< float > *bimage, CarmaObj< float > *bcube, int npix, int nsub, int Nsub, int *ivalid, int *jvalid, bool add, CarmaDevice *device) |
int | fillbinimg_async (CarmaHostObj< float > *image_telemetry, float *bimage, float *bcube, int npix, int nsub, int Nsub, int *ivalid, int *jvalid, int nim, bool add, CarmaDevice *device) |
int | convolve_cube (cuFloatComplex *d_odata, cuFloatComplex *d_idata, int N, int n, CarmaDevice *device) |
template<class T > | |
int | digitalize (T *camimg, float *binimg, float *dark, float *flat, int max_flux_per_pix, int max_pix_value, int N, CarmaDevice *device) |
template<class T > | |
void | subap_reduce (int size, int threads, int blocks, T *d_idata, T *d_odata, CarmaDevice *device) |
template<class T > | |
void | subap_reduce_async (int threads, int blocks, CarmaStreams *streams, T *d_idata, T *d_odata) |
template<class T > | |
void | subap_reduce (int size, int threads, int blocks, T *d_idata, T *d_odata, T thresh, CarmaDevice *device) |
template<class T > | |
void | subap_reduce_new (int size, int threads, int blocks, T *d_idata, T *d_odata, T thresh, CarmaDevice *device) |
template<class T > | |
void | subap_reduce (int size, int threads, int blocks, T *d_idata, T *d_odata, T *weights, CarmaDevice *device) |
template<class T > | |
void | phase_reduce (int threads, int blocks, T *d_idata, T *d_odata, int *indx, T alpha) |
template<class T > | |
void | phase_derive (int size, int threads, int blocks, int n, T *d_idata, T *d_odata, int *indx, T *mask, T alpha, float *fluxPerSub) |
template<class Tout , class Tin > | |
void | pyr_getpup (Tout *d_odata, Tin *d_idata, Tout *d_offsets, Tin *d_pup, int np, float lambda, CarmaDevice *device) |
template<class Tout , class Tin > | |
void | pyr_getpup (Tout *d_odata, Tin *d_idata, Tin *d_pup, int np, int N, float lambda, float cx, float cy, CarmaDevice *device) |
template<class T > | |
void | pyr_rollmod (T *d_odata, T *d_idata, T *d_mask, float cx, float cy, int np, int ns, CarmaDevice *device) |
template<class T > | |
void | pyr_fillbin (T *d_odata, T *d_idata, int nrebin, int np, int ns, int nim, CarmaDevice *device) |
template<class T > | |
int | pyr_fillbinimg (T *bimage, const T *bcube, const int nxsub, const bool add, CarmaDevice *device) |
template<class T > | |
int | pyr_fillbinimg (T *oimage, const T *image, const int n, const int N, const int rebin, const bool add, CarmaDevice *device) |
template<class Tin , class Tout > | |
void | pyr_abs2 (Tout *d_odata, Tin *d_idata, Tout fact, int ns, int nim, CarmaDevice *device) |
template<class Tout , class Tin > | |
void | pyr_submask (Tout *d_odata, Tin *d_mask, int n, CarmaDevice *device) |
template<class T > | |
void | pyr_submaskpyr (T *d_odata, T *d_mask, int n, CarmaDevice *device) |
template<class T > | |
void | pyr_submaskpyr (T *d_odata, float *d_mask, int n, CarmaDevice *device) |
template<class Tout , class Tin > | |
void | pyr_abs (Tout *d_odata, Tin *d_idata, int ns, int nim, CarmaDevice *device) |
template<class Tout , class Tin > | |
void | pyr_submask3d (Tout *d_odata, Tin *d_mask, int n, int nim, CarmaDevice *device) |
template<class T > | |
void | pyr_intensities (T *d_odata, T *d_idata, int *subindx, int *subindy, int ns, int nvalid, int nim, CarmaDevice *device) |
template<class T > | |
void | pyr_intensities (T *d_odata, T *d_idata, int *subindx, int *subindy, int ns, int nvalid, CarmaDevice *device) |
template<class T > | |
void | pyr_fact (T *d_data, T fact, int n, int nim, CarmaDevice *device) |
void | pyr_fact (cuFloatComplex *d_data, float fact, int n, int nim, CarmaDevice *device) |
void | pyr_fact (float *d_data, float fact1, float *fact2, int n, int nim, CarmaDevice *device) |
template<class Tin , class Tout > | |
void | roof_abs2 (Tout *d_odata, Tin *d_idata, Tout fact, int ns, int nim, CarmaDevice *device) |
template<class T > | |
void | roof_intensities (T *d_odata, T *d_idata, int *subindx, int *subindy, int ns, int nvalid, int nim, CarmaDevice *device) |
template<class T > | |
void | roof_rollmod (T *d_odata, T *d_idata, T *d_mask, float cx, float cy, int np, int ns, CarmaDevice *device) |
template<class T > | |
void | roof_fillbin (T *d_odata, T *d_idata, int nrebin, int np, int ns, int nim, CarmaDevice *device) |
void | copy_imgin_binimg (float *binimg, int *validsubsx, int *validsubsy, int Nb, float *img, int *validx, int *validy, int Nim, int Npix, CarmaDevice *device) |
int convolve_cube | ( | cuFloatComplex * | d_odata, |
cuFloatComplex * | d_idata, | ||
int | N, | ||
int | n, | ||
CarmaDevice * | device | ||
) |
void copy_imgin_binimg | ( | float * | binimg, |
int * | validsubsx, | ||
int * | validsubsy, | ||
int | Nb, | ||
float * | img, | ||
int * | validx, | ||
int * | validy, | ||
int | Nim, | ||
int | Npix, | ||
CarmaDevice * | device | ||
) |
int digitalize | ( | T * | camimg, |
float * | binimg, | ||
float * | dark, | ||
float * | flat, | ||
int | max_flux_per_pix, | ||
int | max_pix_value, | ||
int | N, | ||
CarmaDevice * | device | ||
) |
int fillbincube | ( | float * | bcube, |
cuFloatComplex * | hrimage, | ||
int * | indxpix, | ||
int | Nfft, | ||
int | Npix, | ||
int | Nrebin, | ||
int | Nsub, | ||
CarmaDevice * | device | ||
) |
int fillbincube_async | ( | CarmaStreams * | streams, |
float * | bcube, | ||
cuFloatComplex * | hrimage, | ||
int * | indxpix, | ||
int | Nfft, | ||
int | Npix, | ||
int | Nrebin, | ||
int | Nsub, | ||
CarmaDevice * | device | ||
) |
int fillbinimg | ( | float * | bimage, |
float * | bcube, | ||
int | npix, | ||
int | nsub, | ||
int | Nsub, | ||
int * | ivalid, | ||
int * | jvalid, | ||
bool | add, | ||
CarmaDevice * | device | ||
) |
int fillbinimg_async | ( | CarmaHostObj< float > * | image_telemetry, |
float * | bimage, | ||
float * | bcube, | ||
int | npix, | ||
int | nsub, | ||
int | Nsub, | ||
int * | ivalid, | ||
int * | jvalid, | ||
int | nim, | ||
bool | add, | ||
CarmaDevice * | device | ||
) |
int fillbinimg_async | ( | CarmaStreams * | streams, |
CarmaObj< float > * | bimage, | ||
CarmaObj< float > * | bcube, | ||
int | npix, | ||
int | nsub, | ||
int | Nsub, | ||
int * | ivalid, | ||
int * | jvalid, | ||
bool | add, | ||
CarmaDevice * | device | ||
) |
int fillcamplipup | ( | cuFloatComplex * | amplipup, |
float * | phase, | ||
float * | offset, | ||
float * | mask, | ||
float | scale, | ||
int * | istart, | ||
int * | jstart, | ||
int * | ivalid, | ||
int * | jvalid, | ||
int | nphase, | ||
int | npup, | ||
int | Nfft, | ||
int | Ntot, | ||
CarmaDevice * | device, | ||
int | offset_phase | ||
) |
int indexfill | ( | cuFloatComplex * | d_odata, |
cuFloatComplex * | d_idata, | ||
int * | indx, | ||
int | nx, | ||
int | Nx, | ||
int | N, | ||
CarmaDevice * | device | ||
) |
void phase_derive | ( | int | size, |
int | threads, | ||
int | blocks, | ||
int | n, | ||
T * | d_idata, | ||
T * | d_odata, | ||
int * | indx, | ||
T * | mask, | ||
T | alpha, | ||
float * | fluxPerSub | ||
) |
void phase_reduce | ( | int | threads, |
int | blocks, | ||
T * | d_idata, | ||
T * | d_odata, | ||
int * | indx, | ||
T | alpha | ||
) |
void pyr_abs | ( | Tout * | d_odata, |
Tin * | d_idata, | ||
int | ns, | ||
int | nim, | ||
CarmaDevice * | device | ||
) |
void pyr_abs2 | ( | Tout * | d_odata, |
Tin * | d_idata, | ||
Tout | fact, | ||
int | ns, | ||
int | nim, | ||
CarmaDevice * | device | ||
) |
void pyr_fact | ( | cuFloatComplex * | d_data, |
float | fact, | ||
int | n, | ||
int | nim, | ||
CarmaDevice * | device | ||
) |
void pyr_fact | ( | float * | d_data, |
float | fact1, | ||
float * | fact2, | ||
int | n, | ||
int | nim, | ||
CarmaDevice * | device | ||
) |
void pyr_fact | ( | T * | d_data, |
T | fact, | ||
int | n, | ||
int | nim, | ||
CarmaDevice * | device | ||
) |
void pyr_fillbin | ( | T * | d_odata, |
T * | d_idata, | ||
int | nrebin, | ||
int | np, | ||
int | ns, | ||
int | nim, | ||
CarmaDevice * | device | ||
) |
int pyr_fillbinimg | ( | T * | bimage, |
const T * | bcube, | ||
const int | nxsub, | ||
const bool | add, | ||
CarmaDevice * | device | ||
) |
int pyr_fillbinimg | ( | T * | oimage, |
const T * | image, | ||
const int | n, | ||
const int | N, | ||
const int | rebin, | ||
const bool | add, | ||
CarmaDevice * | device | ||
) |
void pyr_getpup | ( | Tout * | d_odata, |
Tin * | d_idata, | ||
Tin * | d_pup, | ||
int | np, | ||
int | N, | ||
float | lambda, | ||
float | cx, | ||
float | cy, | ||
CarmaDevice * | device | ||
) |
void pyr_getpup | ( | Tout * | d_odata, |
Tin * | d_idata, | ||
Tout * | d_offsets, | ||
Tin * | d_pup, | ||
int | np, | ||
float | lambda, | ||
CarmaDevice * | device | ||
) |
void pyr_intensities | ( | T * | d_odata, |
T * | d_idata, | ||
int * | subindx, | ||
int * | subindy, | ||
int | ns, | ||
int | nvalid, | ||
CarmaDevice * | device | ||
) |
void pyr_intensities | ( | T * | d_odata, |
T * | d_idata, | ||
int * | subindx, | ||
int * | subindy, | ||
int | ns, | ||
int | nvalid, | ||
int | nim, | ||
CarmaDevice * | device | ||
) |
void pyr_rollmod | ( | T * | d_odata, |
T * | d_idata, | ||
T * | d_mask, | ||
float | cx, | ||
float | cy, | ||
int | np, | ||
int | ns, | ||
CarmaDevice * | device | ||
) |
void pyr_submask | ( | Tout * | d_odata, |
Tin * | d_mask, | ||
int | n, | ||
CarmaDevice * | device | ||
) |
void pyr_submask3d | ( | Tout * | d_odata, |
Tin * | d_mask, | ||
int | n, | ||
int | nim, | ||
CarmaDevice * | device | ||
) |
void pyr_submaskpyr | ( | T * | d_odata, |
float * | d_mask, | ||
int | n, | ||
CarmaDevice * | device | ||
) |
void pyr_submaskpyr | ( | T * | d_odata, |
T * | d_mask, | ||
int | n, | ||
CarmaDevice * | device | ||
) |
void roof_abs2 | ( | Tout * | d_odata, |
Tin * | d_idata, | ||
Tout | fact, | ||
int | ns, | ||
int | nim, | ||
CarmaDevice * | device | ||
) |
void roof_fillbin | ( | T * | d_odata, |
T * | d_idata, | ||
int | nrebin, | ||
int | np, | ||
int | ns, | ||
int | nim, | ||
CarmaDevice * | device | ||
) |
void roof_intensities | ( | T * | d_odata, |
T * | d_idata, | ||
int * | subindx, | ||
int * | subindy, | ||
int | ns, | ||
int | nvalid, | ||
int | nim, | ||
CarmaDevice * | device | ||
) |
void roof_rollmod | ( | T * | d_odata, |
T * | d_idata, | ||
T * | d_mask, | ||
float | cx, | ||
float | cy, | ||
int | np, | ||
int | ns, | ||
CarmaDevice * | device | ||
) |
void subap_reduce | ( | int | size, |
int | threads, | ||
int | blocks, | ||
T * | d_idata, | ||
T * | d_odata, | ||
CarmaDevice * | device | ||
) |
void subap_reduce | ( | int | size, |
int | threads, | ||
int | blocks, | ||
T * | d_idata, | ||
T * | d_odata, | ||
T * | weights, | ||
CarmaDevice * | device | ||
) |
void subap_reduce | ( | int | size, |
int | threads, | ||
int | blocks, | ||
T * | d_idata, | ||
T * | d_odata, | ||
T | thresh, | ||
CarmaDevice * | device | ||
) |
void subap_reduce_async | ( | int | threads, |
int | blocks, | ||
CarmaStreams * | streams, | ||
T * | d_idata, | ||
T * | d_odata | ||
) |
void subap_reduce_new | ( | int | size, |
int | threads, | ||
int | blocks, | ||
T * | d_idata, | ||
T * | d_odata, | ||
T | thresh, | ||
CarmaDevice * | device | ||
) |