ysbecca / py-wsi

Python package for dealing with whole slide images (.svs) for machine learning, particularly for fast prototyping. Includes patch sampling and storing using OpenSlide. Patches may be stored in LMDB, HDF5 files, or to disk. It is highly recommended to fork and download this repository so that personal customisations can be made for your work.
https://ysbecca.github.io/programming/2018/05/22/py-wsi.html
GNU General Public License v3.0
161 stars 93 forks source link

how to randomly draw a certain number of tiles from pre-extracted tiles from each WSI #44

Open cl2227619761 opened 3 years ago

cl2227619761 commented 3 years ago

I would like to draw N=50 tiles randomly from the pre-extracted tiles from each WSI, how to achieve this using py-wsi?