It is a sample code for
- loading masks
- generating an overlay between an original image and a mask
- resizing to make an image fit into simple viewers (e.g. Windows default viewer, Fiji, etc.)
Please note that this code is not providing svs loading part because there are several well-known open source library for this. (e.g. openslide, pyvips, etc.)
It is another extremely simple code for
- loading a mask
- saving after applying ADOBE_DEFLATE level 9 compression with the same filename (may overwrite)
- the output will have around ten times smaller file size compared to the original uncompressed tif