module documentation
Preprocessing script to synthetically stain and segment a slide.
| Function | colourise |
Preprocess the slide. |
| Variable | network |
Network ROI, staining_window will be transformed to this size and back again |
| Variable | staining |
The size we would like to stain at one time |
| Variable | state |
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 | |
slidestr | path to the slide to be processed (str), |
isbool | whether the slide is real or fake (bool), |
dumpstr | directory where full image should be saved (str) |
dumpstr | directory where filtered images should be saved (str) |
subdirectory:str | directory append (i.e. class, either PD or Control) (str) |