image_processing_function module

image_operations(file_path, output_folder, dark_file_path, ref_img_path)[source]

Apply preprocessing transformations to image and save to disk.

Parameters:
  • file_path (str) – The full file path to the image input.

  • output_folder (str) – The folder for which to save the outputs.

  • dark_file_path (str) – The full path to the dark file to be used for correction.

  • ref_img_path (str) – Full path to reference image to be used for resizing.

save_img(img, file_path)[source]

Save image as tiff file to specified file path.

Parameters:
  • img (PIL.Image) – PIL image to save.

  • file_path (str) – Complete file path for where to save the file.

  • is_dry_run (bool) – Specify whether to perform a dry-run operation (default: False).