PsfModel Class Reference
Public Types
Public Member Functions
- PsfModel ()
- PsfModel (const std::string &filename)
- PsfModel (const PsfModel &other)
- virtual ~PsfModel ()
- void init_from_file (const std::string &filename)
- double get_sigx_xy (float x, float y) const
- double get_sigy_xy (float x, float y) const
- double get_h2y_xy (float x, float y) const
- double get_h3y_xy (float x, float y) const
- void print_sigx_coefficients (std::ostream &os) const
- void print_sigy_coefficients (std::ostream &os) const
- MArray< float, 2 > get_psf (const int psf_x, const int psf_y, const float x, const float y, const Distortion &D) const
- get normalized PSF at {x,y} with size psf_x and psf_y
- void fit_params (const list< PsfDataTuple > &PeakPars)
- compute best fit parameters for psf width in x (sx) and y (sy)
Protected Attributes
Friends
Detailed Description
Model the spectrograph+camera PSF as a function of position on a VIRUS CCD. Together with Distortion
and FiberModel
, this forms a complete model of the VIRUS sperctrograph.
Member Typedef Documentation
Constructor & Destructor Documentation
PsfModel::PsfModel |
( |
const std::string & |
filename |
) |
|
PsfModel::PsfModel |
( |
const PsfModel & |
other |
) |
|
virtual PsfModel::~PsfModel |
( |
|
) |
[inline, virtual] |
Member Function Documentation
void PsfModel::init_from_file |
( |
const std::string & |
filename |
) |
|
double PsfModel::get_sigx_xy |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
double PsfModel::get_sigy_xy |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
double PsfModel::get_h2y_xy |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
double PsfModel::get_h3y_xy |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
void PsfModel::print_sigx_coefficients |
( |
std::ostream & |
os |
) |
const |
void PsfModel::print_sigy_coefficients |
( |
std::ostream & |
os |
) |
const |
MArray< float, 2 > PsfModel::get_psf |
( |
const int |
psf_x, |
|
|
const int |
psf_y, |
|
|
const float |
x, |
|
|
const float |
y, |
|
|
const Distortion & |
D | |
|
) |
| | const |
void PsfModel::fit_params |
( |
const list< PsfDataTuple > & |
PeakPars |
) |
|
References _scalx_, _scaly_, PsfDataTuple::dSigX, PsfDataTuple::dSigY, BivariateLinearLsqFit< T, Function >::fit(), PsfDataTuple::H2Y, h2y_par_, PsfDataTuple::H3Y, h3y_par_, PsfDataTuple::SigX, sigx_par_, PsfDataTuple::SigY, sigy_par_, PsfDataTuple::X, and PsfDataTuple::Y.
Referenced by fit_initial_dist(), and main().
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const PsfModel & |
d | |
|
) |
| | [friend] |
std::istream& operator>> |
( |
std::istream & |
is, |
|
|
PsfModel & |
d | |
|
) |
| | [friend] |
Field Documentation