pyfibre.shg_pl_trans.utils module

pyfibre.shg_pl_trans.utils.extract_prefix(image_name, label)[source]

Extract the prefix of image_name, before label

pyfibre.shg_pl_trans.utils.filter_input_files(input_files)[source]
pyfibre.shg_pl_trans.utils.get_files_prefixes(input_files, image_type)[source]

Get the file path and file prefix of all files containing label

pyfibre.shg_pl_trans.utils.get_image_type(image_path)[source]

Get type of image (PL, SHG or SHG-PL-Trans) from file name