mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
A simulated CCD detector.
A simulated CCD detector, including an optional EMCCD noise model.
Definition at line 38 of file ccdDetector.hpp.
#include <ao/sim/ccdDetector.hpp>
Public Member Functions | |
realT | qe () |
Get the current value of qe. More... | |
void | exposeImage (imageT &out, imageT &in) |
Rebin and add noise to the input image, placing the result in the output image. More... | |
Protected Attributes | |
norm_distT | m_normVar |
Gets normal-distributed variates. More... | |
poisson_distT | m_poissonVar |
Gets Poisson distributed variates. More... | |
gamma_distT | m_gammaVar |
Gets gamma distributed variates. More... | |
realT | m_qe {1} |
The quantum efficiency. More... | |
realT | m_darkCurrent {0} |
The dark current, per pixel per second. More... | |
realT | m_ron {0} |
The readout noise, electrons per pixel per read #include "mx/randomT.hpp". More... | |
realT | m_cic {0} |
EMCCD clock induced charge, electrons per pixel per read. More... | |
realT | m_gain {1} |
Electron multiplication gain. If >1, then EMCCD is modeled. More... | |
realT | m_expTime {1} |
The exposure time, in seconds. More... | |
int | m_rows {0} |
The detector size, in rows. More... | |
int | m_cols {0} |
The detector size, in columns. More... | |
bool | m_noNoise {false} |
If true no noise is added to the exposed image. More... | |
void mx::AO::sim::ccdDetector< realT >::exposeImage | ( | imageT & | out, |
imageT & | in | ||
) |
Rebin and add noise to the input image, placing the result in the output image.
The output image must be the same size or smaller than the input image. The output image is resized only if necessary. The input image is multiplied by expTime, so its flux should be in photons/sec. Noise is modeled as follows:
[out] | out | The output image, after all above steps applied. |
[in] | in | the input image, in photons/sec flux units. |
Definition at line 303 of file ccdDetector.hpp.
References mx::improc::imageDownSample().
realT mx::AO::sim::ccdDetector< realT >::qe |
Get the current value of qe.
Definition at line 185 of file ccdDetector.hpp.
|
protected |
EMCCD clock induced charge, electrons per pixel per read.
Definition at line 71 of file ccdDetector.hpp.
|
protected |
The detector size, in columns.
Definition at line 77 of file ccdDetector.hpp.
|
protected |
The dark current, per pixel per second.
Definition at line 68 of file ccdDetector.hpp.
|
protected |
The exposure time, in seconds.
Definition at line 74 of file ccdDetector.hpp.
|
protected |
Electron multiplication gain. If >1, then EMCCD is modeled.
Definition at line 72 of file ccdDetector.hpp.
|
protected |
Gets gamma distributed variates.
Definition at line 64 of file ccdDetector.hpp.
|
protected |
If true no noise is added to the exposed image.
Definition at line 79 of file ccdDetector.hpp.
|
protected |
Gets normal-distributed variates.
Definition at line 62 of file ccdDetector.hpp.
|
protected |
Gets Poisson distributed variates.
Definition at line 63 of file ccdDetector.hpp.
|
protected |
The quantum efficiency.
Definition at line 66 of file ccdDetector.hpp.
|
protected |
The readout noise, electrons per pixel per read #include "mx/randomT.hpp".
Definition at line 69 of file ccdDetector.hpp.
|
protected |
The detector size, in rows.
Definition at line 76 of file ccdDetector.hpp.