MONAI icon indicating copy to clipboard operation
MONAI copied to clipboard

Whole slide dataset to extract random patches

Open bhashemian opened this issue 3 years ago • 2 comments

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.

bhashemian avatar Apr 10 '22 13:04 bhashemian

Can we also build in the capability to extract patches at different zoom levels. That will be ideal.

vikashg avatar Apr 13 '22 13:04 vikashg

@vikashg thanks for your input. We have recently addressed that in PR #4036, and now you should be able to pass level argument to extract patches at that level.

bhashemian avatar Apr 13 '22 15:04 bhashemian