Currently, PatchWSIDataset generates patches based on pre-defined locations. In digital pathology use cases, there is a need for generating such patches randomly from all over the whole slide image. This requirement is different than using TileOnGrid to generate such patches since this transform is operating on the image in the memory while RandPatchWSIDataset directly deal with whole slide images on the file system.
Currently,
PatchWSIDatasetgenerates patches based on pre-defined locations. In digital pathology use cases, there is a need for generating such patches randomly from all over the whole slide image. This requirement is different than usingTileOnGridto generate such patches since this transform is operating on the image in the memory whileRandPatchWSIDatasetdirectly deal with whole slide images on the file system.