DIAGNijmegen / pathology-whole-slide-data

A package for working with whole-slide data including a fast batch iterator that can be used to train deep learning models.
https://diagnijmegen.github.io/pathology-whole-slide-data/
Apache License 2.0
86 stars 24 forks source link

fix for cases in which Classification key is not present #51 #52

Closed Mat-Po closed 6 months ago

Mat-Po commented 6 months ago

Fixes #51

The current implementation did not handle cases in which the "Classification" key was not present in the GeoJSON file. This PR handle this case, which can happen when we wan to classify cells inside of a ROI. The ROI will not have a Classification Key. The result of this operation only include annotation that have a "Classification" key and ignore those who have not.

Matteo

martvanrijthoven commented 6 months ago

Thanks!