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.
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 newutils.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})