Page History
...
See also Example for Module ImgAlgos::ImgPeakFinderAB.
Module ImgAlgos::ImgSpectra
Extracts two spectra from image and evaluate their relative difference.
mgAlgos::ImgSpectra
psana module:
- gets the
ndarray<double,2>
image object from event, - selects two spectral band regions and integrates amplitudes for each column,
- saves two spectra for signal and reference bands and their relative difference as another
ndarray<double,2>
object in the event.
See also Example for Module ImgAlgos::ImgSpectra.
Module configuration parameters:
source
(default: "DetInfo(:Opal1000)") – source of datakey_in
(default: "img") – key for input image datakey_out
(default: "spectra") – key for output array with spectrasig_band_rowc
(default: 510) – signal band central row at column=0ref_band_rowc
(default: 550) – reference ...sig_band_tilt
(default: 0) – signal band tilt angleref_band_tilt
(default: 0) – reference ...sig_band_width
(default: 10) – signal band width in number op rowsref_band_width
(default: 10) – reference ...print_bits
(default: 0) – finder verbosity:- =0 - print nothing,
- +1 - input pars,
- +2 - event record,
- +4 - image shape,
- +8 - spectral array.
Module ImgAlgos::ImgSpectraProc
Works after module ImgAlgos::ImgSpectra.
This module is designed as an example, in order to show how to get access to spectral array.
In particular, method ImgSpectraProc::getSpectra(...)
shows how to get pointer to data, and method ImgSpectraProc::printSpectra(...)
iterates over array and selectively prints its elements.
Module configuration parameters:
source
(default: "DetInfo(:Opal1000)") – source of datakey_in
(default: "spectra") – key for input image dataprint_bits
(default: 0) – finder verbosity:- =0 - print nothing,
- +1 - input pars,
- +2 - event record,
- +4 - spectral array shape,
- +8 - spectral array.
See also Example for Module ImgAlgos::ImgSpectraProc.
Module ImgAlgos::ImgSaveInFile
Note |
---|
Aka depricated modules: CSPadPixCoords::CSPadImageGetTest, CSPadPixCoords::SaveImageInFile, and ImgAlgos::SaveImageInFile. |
...