module documentation

Preprocessing script to synthetically stain and segment a slide.

Function colourise_slide_and_segment Preprocess the slide.
Variable network_roi_size Network ROI, staining_window will be transformed to this size and back again
Variable staining_window The size we would like to stain at one time
Variable state_path Location of the synthetic staining model weights
def colourise_slide_and_segment(slide_file, is_synthetic, dump_path_full, dump_path_segmented, subdirectory):

Preprocess the slide.

Parameters
slide_file:strpath to the slide to be processed (str),
is_synthetic:boolwhether the slide is real or fake (bool),
dump_path_full:strdirectory where full image should be saved (str)
dump_path_segmented:strdirectory where filtered images should be saved (str)
subdirectory:strdirectory append (i.e. class, either PD or Control) (str)
network_roi_size: int =

Network ROI, staining_window will be transformed to this size and back again

staining_window: int =

The size we would like to stain at one time

state_path =

Location of the synthetic staining model weights