Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 Example for Module ImgAlgos::AcqirisCFD

Module ImgAlgos::NDArrImageProducer

For any available in the event store ndarray<const T,NDim>, defined by the source and key_in parameters, and which size is equal to the number of pixels in the detector,  this module creates 2-d image ndarray<const TOUT,2> and saves it in the event store with key_out. TOUT is defined by the type_out. Pixel geometry array is retreived from the calibration file of  "geometry" type from default standard or specified in calibdir directory.

Configuration parameters:

parameter

default value

description

source

""

input source of data

key_in

""

key for input data, for example it might be "calibrated", by default (empty) raw data

key_out"image"key for output image in the event store.
type_out"asinp"type of data in output image array. Possible values - "asinp"-the same type as input array, "int16", "float", "double", "int".

print_bits

0

module verbosity:

  • =0 - print nothing
  • +1 - input pars
  • +2 - event record
  • +4 - beginning of 3 stages
  • +8 - processed statistics at the end of each stage
  • +16 - size of types table
  • +32 - summary with keywords for parser
  • +64 - statistics of bad pixels
  • +128 - mean and rms in 3 iterations of the threshold auto-evaluation algorithm and evaluated threshold
  • +256 - warning if ndarray shape is not defined yet

Additional parameters which can be used for special applications like alignment:

parameter

default value

description

calibdir

""

non-default calibration directory for "geometry" file

calibgroup""by-default calibration group is retreived from source name as  <detector>::CalibV1
oname""top object name in the hierarchial geometry file
oindex0top object index in the hierarchial geometry file
pix_scale_size_um0set the ize of the image bin. By-default this value is extracted from sensor.
x0_off_pix0offset of the top geometry object origin x0 coordinate on the image in number of pixels
y0_off_pix0offset of the top geometry object origin y0 coordinate on the image in number of pixels


See also Example for Module ImgAlgos::NDArrImageProducer.

 

Module ImgAlgos::NDArrAverage

This module averages over events the per-element data of the image array (ndarray<const T,NDim>, where T is implemented for almost all types: int, int16, uint, float, double etc., NDim≤5) and saves files for sum, averaged, rms values, mask, and, the hot pixel map. Input ndarray can be specified by the source and key parameters. Averaging may have up to three stages, depending on configuration parameters:

...