Versions Compared

Key

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

...

Note

Aka depricated modules: CSPadPixCoords::CSPadImageGetTest, CSPadPixCoords::SaveImageInFile, and ImgAlgos::SaveImageInFile.

Module ImgSaveInFile receives from the event the image object using source and key parameters and saves it in the ftype format with prefix file name fname for event(s) specified by the parameters eventSave or saveAll. Currently implemented file formats: txt, bin, png, and tiff.

ImgSaveInFile works after the CSPadImageProducer, CSPadInterpolImageProducer, CameraImageProducer, PnccdImageProducer, etc., which produce image object in formats CSPadPixCoords::Image2D<T> or ndarray<T,2>, where the T stands for one of the data types, double, float, int, uint8_t, or uint16_t.
ImgSaveInFile receives from the event the image object by its source and key parameters and saves it as a per-pixel 2-d table in the text file with prefix name fname for event(s) specified by the parameters eventSave or saveAll.

Module configuration parameters:

  • source (default: "CxiDs1.0:Cspad.0") – source of data,
  • key (default: "Image2D") – input image key,
  • eventSave (default: 0) – event number to save the CSPad image file,
  • saveAll (default: false) – save or not all selected events,
  • ftype (default: "txt") – output file format; currently implemented formats txt, bin, png, tiff
  • fname (default: "cspad_image_evimg") – prefix of the output file name. Entire file name
    is formed as <cspad_image_ev><timestamp>.txt<ftype>.
  • print_bits(default: 0) – verbosity:
    • =0 - print nothing,
    • +1 - input pars,
    • +2 - info about saved files.

...