Versions Compared

Key

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

...

See also Example for Module ImgAlgos::ImgCalib.

Module ImgAlgos::ImgIntForBins

Functionality:

  • ImgIntForBins uses the source and key_in parameters to get the input image (as ndarray<T,2> object), where T stands for uint16_t, int, float, uint8_t, or double,
  • gets the pixel-bin indexes from files fname_map_bins,
  • calculates average per pixel intensity for each bin from 0 to number_of_bins,
  • saves the 2-D array of \<I\>(event, bin) in file fname_int_bins.

Module configuration parameters:

  • source (default: "DetInfo(:Camera)") – source of data,
  • key_in (default: "") – key for input image,
  • fname_map_bins (default: "") – input file name for map of bin indexes,
  • fname_int_bins (default: "") – output file name for intensity(bin,event),
  • number_of_bins (default: 10) – number of bins for output intensities, if map has bins \>=number_of_bins they will be ignored,
  • print_bits (default: 0) – verbosity:
    • =0 - print nothing,
    • +1 - input pars,
    • +2 - time stamp for each event,
    • +4 - detailed info about input files for pedestals, mask, background, and gain.
    • +8 - the first 100 chars of the output intensity string
    • +32 - info about open/close output file

Module ImgAlgos::ImgRadialCorrection

This module averages the image pixel amplitude in r-phi bins, normalizes it per single pixel and subtracts the average amplitude from each pixel. Image is obtained from event by its source and inkey values. The output corrected image is saved in the event with outkey keyword. Carthesian to polar coordinate transformation is done with respect to center coordinates xcenter, ycenter. The central region (r<rmin) and edges of the image (r>rmax) pixels can be removed from further consideration by setting rmin and rmax. The number of radial bins is defined as an int(rmax-rmin). The number of angular bins is set by n_phi_bins.

...