Page History
...
If all file names are empty (by default), the files with pre-defined names "arr-ave-<exp>-r<run>.dat" and "arr-rms-<exp>-r<run>.dat" will be saved for averaged and rms arrays, respectively. Otherwise, the files with specified names will be saved.
Default parameters are set for regular single-stage averaging without any constrains.
See also Example for Module ImgAlgos::NDArrAverage.
Module ImgAlgos::NDArrCalib
- ImgCalib uses the
source
andkey_in
parameters to get the input raw image (asndarray<T,NDIM>
object), where T stands for uint16_t, int, float, uint8_t, or double, NDim≤5, - automaticly gets parameters from calibration store for types
pedestals, common_mode, pixel_status, pixel_gain,
- get parameters from user-defined files
fname_bkgd,
fname_mask
, andfname_nrms
, if their names are specified, the specified by the file name corrections are applied per-pixel to raw data
ndarray<T,NDIM>
as follows:
- subtracts pedestals,
- subtracts common mode,
- subtracts normalized background,
- apply gain factors,
- apply hot/bad pixel_status mask,
- apply mask, and
- apply threshold as a constant low level,
- apply threshold as N*RMS,
- and saves the corrected ndarray<double,NDim> in the event with key
key_out
Code Block | ||
---|---|---|
| ||
A_cor = A_raw
(1) - pedestal | if pedestals are available in calib store
(2) - N*background | if the file name is specified in the parameter "fname_bkgd"
(3) * gain | if pixel_gain are available in calib store
(4) apply hot/bad pixel mask | if pixel_status are available in calib store
(5) apply mask | if the file name is specified in the parameter "fname_mask"
(6) apply N*RMS threshold | if the file name is specified in the parameter "fname_nrms"
(7) apply threshold | if the "do_threshold" = true
|
Configuration parameters
parameter | default value | description |
---|---|---|
| DetInfo(:Camera) | source of data |
|
| key for input image |
| calibrated | output key for calibrated image saved in event |
| false | true: pedestals subtracted if available in calib store |
| false | true: common mode correction is evaluated and applied |
| false | true: bad/hot pixels in pixel_status are masked |
| false | true: mask is applied if the file |
| false | true: normalized background is subtracted if the file |
| false | true: |
| false | true: per-pixel threshold is applied if the file |
| false | true: low level |
|
| input file name for background, applied if the file name is specified |
|
| input file name for mask, applied if the file name is specified |
|
| input file name for RMS, applied if the file name is specified |
| 0. | amplitude value (in ADU) substituted for masked pixels |
| 3. | threshold as a number of sigmas from file |
| 0. | constant low level threshold in ADU |
| 0. | the amplitude substituted in pixels below threshold |
| 0 | minimal index in flatten ndarray, which is used for background normalization |
| 100 | maximal index in flatten ndarray, which is used for background normalization |
| 2 | index increment in flatten ndarray, which is used for background normalization |
| 0 | verbosity:
|
See also Example for Module ImgAlgos::NDArrCalib.
Module ImgAlgos::ImgAverage
This module averages over events the per-pixel data of the image array (ndarray<double,2>) and saves files for averaged, rms values, and, if requested, the hot pixel mask. Input data can be specified by the source
and key
parameters. Averaging may have up to three stages, depending on configuration parameters:
...