jamesdolezal / slideflow

Deep learning library for digital pathology, with both Tensorflow and PyTorch support.
https://slideflow.dev
GNU General Public License v3.0
230 stars 38 forks source link

Issue and tissue #368

Open matte-esse opened 1 month ago

matte-esse commented 1 month ago

These addition allow to specify a list RoI labels that shuold be treated as issues (artifacts), meaning that should be excluded in the tile extraction.

Inside wsi the artifact RoIs are still stored in their normal form but the new utils.invert_roi function invert them when needed.

This approach was chosen because to compute the final grid for extraction we need to invert the artifact RoIs do the intersection between them and finally do the intersection between the result and the union of the normal RoIs.

(⋃{RoIs}) ⋂ (⋂{artifacts})