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 merge tiles back to whole slide image (usage_issue) #41

Closed talkhanz closed 3 years ago

talkhanz commented 3 years ago

Dear @ysbecca I am looking to extract tiles from a .svs file, perform segmentation on the tile and then stitch all the tiles back so they reappear as the whole slide image in the correct order. Is it possible to do that with py_wsi? I am asking since I could not locate code for stitching/merging the code in the repo.

ysbecca commented 3 years ago

Hi @talkhanz, unfortunately py_wsi doesn't do re-stitching. py_wsi does store the row, col coordinates of the sampled tiles which will be used for the re-stitching.