tumourkit.preprocessing.png2graph.main_subthread
- tumourkit.preprocessing.png2graph.main_subthread(name: str, png_dir: str, orig_dir: str, output_path: str, pbar: tqdm) None
A wrapper function to use multiprocessing.
- Parameters:
name (str) – The name of the image file (without extension).
png_dir (str) – The directory path containing PNG segmentation masks.
orig_dir (str) – The directory path containing original RGB images.
output_path (str) – The directory path to save output files.
pbar (tqdm.tqdm) – A progress bar object to track the progress of the computation.