MAOS
Multithreaded Adaptive Optics Simulator
Loading...
Searching...
No Matches
mtch.h File Reference

Functions

void mtch (dmat **mtche, dmat **neaout, const dmat *i0, const dmat *gx, const dmat *gy, const dmat *qe, const dmat *dbkgrnd2, const dmat *dbkgrnd2c, real bkgrnd, real bkgrndc, real rne, real pixthetax, real pixthetay, real pixrot, int radgx, int cr)
void mtch2 (dmat **mtche, dmat **nea, const dmat *i0, const dmat *gx, const dmat *gy, int cr)
void mtch_cell (dcell **pmtche, dcell **psanea, dmat **pi0sum, dmat **pi0sumsum, const dcell *i0s, const dcell *gxs, const dcell *gys, const dmat *qe, const dcell *bkgrnd2, const dcell *bkgrnd2c, real bkgrnd, real bkgrndc, real rne, real pixthetax, real pixthetay, dcell *pixrots, int radgx, int mtchcr, real sigratio)
dmat * derive_by_fft (const dmat *i0, real theta)

Function Documentation

◆ mtch()

void mtch ( dmat ** mtche,
dmat ** neaout,
const dmat * i0,
const dmat * gx,
const dmat * gy,
const dmat * qe,
const dmat * dbkgrnd2,
const dmat * dbkgrnd2c,
real bkgrnd,
real bkgrndc,
real rne,
real pixthetax,
real pixthetay,
real pixrot,
int radgx,
int cr )

Generating matched filter from averaged short exposure images.

Parameters
[out]mtchethe matched filter
[out]neaoutthe subaperture noise equivalent angle
[in]i0Averaged subaperture image
[in]gxderivative of i0 along x (r)
[in]gyderivative of i0 along y (a)
[in]qenon uniform quantum efficiency (optional)
[in]dbkgrnd2background
[in]dbkgrnd2cbackground calibration
[in]bkgrndglobal background
[in]bkgrndcglobal background calibration
[in]rneDetector read noise
[in]pixthetaxSize of pixel along x
[in]pixthetaySize of pixel along y
[in]pixrotRotation (CCW, radian) of pixel island. 0 for cartesian
[in]radgx1: gx/gy is along r/a coord. 0 for cartesian.
crConstraint flag 0: disable, 1: both axis, 2: x only, 3: y only

◆ mtch2()

void mtch2 ( dmat ** mtche,
dmat ** nea,
const dmat * i0,
const dmat * gx,
const dmat * gy,
int cr )

A simplified wrapper for mtch

◆ mtch_cell()

void mtch_cell ( dcell ** pmtche,
dcell ** psanea,
dmat ** pi0sum,
dmat ** pi0sumsum,
const dcell * i0s,
const dcell * gxs,
const dcell * gys,
const dmat * qe,
const dcell * bkgrnd2,
const dcell * bkgrnd2c,
real bkgrnd,
real bkgrndc,
real rne,
real pixthetax,
real pixthetay,
dcell * pixrots,
int radgx,
int mtchcr,
real sigratio )

The routine used to generate matched filter from WFS mean short exposure pixel intensities.

Parameters
[out]pmtchematched filter.
[out]psaneasubaperture noise equivalent angle
[out]pi0sumsum of subaperture intensity
[out]pi0sumsumsum of all subaperture intensity
i0sSubaperture intensities
gxsSubaperture intensity gradients along x (radial)
gysSubaperture intensity gradients along y (azimuthal)
qeQuantum efficiency of each pixel
bkgrnd2bkgrnd image
bkgrnd2cbkgrnd correction image
bkgrndbkgrnd per pixel
bkgrndcbkgrnd correction per pixel
rneRead out noise per pixel
pixthetaxPixel size along x (radial)
pixthetayPixel size along y (azimuthal)
pixrotssubaperture pixel rotation.
radgxLeave gradients at radial direction
mtchcrconstraint. -1: auto
sigratioscale signal level to increase NEA. default: 1

◆ derive_by_fft()

dmat * derive_by_fft ( const dmat * i0,
real theta )

Compute the derivative using FFT method along direction specified by theta (radian).