COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
sutra_perfectCoronagraph.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 // This file is part of COMPASS <https://anr-compass.github.io/compass/>
3 //
4 // Copyright (C) 2011-2023 COMPASS Team <https://github.com/ANR-COMPASS>
5 // All rights reserved.
6 
7 // -----------------------------------------------------------------------------
8 
16 
17 #ifndef _SUTRA_PERFECT_CORONAGRAPH_H_
18 #define _SUTRA_PERFECT_CORONAGRAPH_H_
19 
20 #include <sutra_coronagraph.h>
21 #include <map>
22 
24  public:
25  std::map<std::string, std::vector<CarmaObj<cuFloatComplex>*>> AA;
26  std::map<std::string, std::vector<CarmaObj<cuFloatComplex>*>> BB;
27  std::map<std::string, std::vector<float>> norm;
28 
30 
31  public:
33  int im_dimy, float *wavelength, int nWavelength, int device);
35  int compute_image(bool accumulate);
36  int compute_psf(bool accumulate);
37  int set_mft(cuFloatComplex *A, cuFloatComplex *B, float* norm, std::string mftType);
38 
39  private:
40  int _compute_image(bool psf, bool remove_coro, bool accumulate);
41 };
42 
43 #endif //_SUTRA_PERFECT_CORONAGRAPH_H_
this class provides the context in which CarmaObj are created
Definition: carma_context.h:79
this class provides the coronagraph features to COMPASS
SutraSource * d_source
std::vector< float > wavelength
this class provides the coronograph features to COMPASS
int set_mft(cuFloatComplex *A, cuFloatComplex *B, float *norm, std::string mftType)
CarmaObj< cuFloatComplex > * tmp_mft
int compute_psf(bool accumulate)
std::map< std::string, std::vector< CarmaObj< cuFloatComplex > * > > BB
SutraPerfectCoronagraph(CarmaContext *context, SutraSource *d_source, int im_dimx, int im_dimy, float *wavelength, int nWavelength, int device)
int compute_image(bool accumulate)
~SutraPerfectCoronagraph()=default
std::map< std::string, std::vector< CarmaObj< cuFloatComplex > * > > AA
std::map< std::string, std::vector< float > > norm
this class provides the source features to COMPASS
Definition: sutra_source.h:37