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
92 stars 27 forks source link

Plot holes if any within annotations #43

Closed tsikup closed 11 months ago

tsikup commented 11 months ago

Fixed a bug where holes of an annotation were not plotted.

martvanrijthoven commented 11 months ago

Dear Nikos,

Thank you for noticing this issue! Could you please move the added code to the if statement when the annotation is a polygon: https://github.com/DIAGNijmegen/pathology-whole-slide-data/blob/53045d84a8051b6ffc37df52e95f30c2a2333656/wholeslidedata/visualization/plotting.py#L71

otherwise the code will break for points because points don’t have holes.

tsikup commented 11 months ago

Done!