Closed drbeh closed 2 years ago
WSIReader
: Whole slide image reader to extract patches whole slide images without loading the entire slide into the memory at a given resolution level, location and size. It supports different backends such as cuCIM and OpenSlide, and is easily extensible to support other backends and use a consistent metadata to extract patches.PatchWSIDatatset
: a dataset that extracts patches directly from whole slide images and prepare them via provided transforms. It also load and transform associated label to each patch.SlidingPatchWSIDatatse
: this dataset generates, extract and prepare patches that sweep the entire slide with possible overlaps and different offset for starting position of the whole slide image. It also support random offset for data augmentation. Moreover, it provides all the necessary metadata to create the entire slide from the patches, and can be used in tandem with ProbMapProducer to create probability heat maps at any resolution level.MaskedPatchWSIDatatset
: this dataset generates, extract and prepare patches that contains tissue. Given a resolution level, it create a tissue mask and return their corresponding patches in any other given resolution.ProbMapProducer
: the handler automatically gets the model output of each patch, and builds and continuously updates the probability maps associate of the whole slide image at a given resolution level.ForegroundMask
: binary mask of a given histopathology image that separate tissue from background has many application in validation of the models and enhancing the performance. This transform creates a foreground tissue mask based on thresholding RGB and HSV channels using various thresholding methods such as otsu.GridSplit
: Split patches and their labels to sub-patches.GridPatch
: Given a loaded whole slide image at resolution level, it generate patches on the grid that covers all the whole image. It also sorts the patches based on a given sort function and filter them based on the given threshold.RandGridPatch
: Similar functionality to GridPatch but it can randomly create offset for the image for data augmentation of patches.TorchVisionFCModel
: Create fully convolutional models out of pre-trained torch vision models that we have used in metastasis detection pipeline but can be used in any domain.MILModel
: Multiple Instance Learning (MIL) model with a classification backbone model.CuCIM
and RandCuCIM
wrappers
Create a list of pathology-related components, pipelines, bundles, etc.