NKI-AI / dlup

Dlup are the Deep Learning Utilities for Pathology developed at the Netherlands Cancer Institute
Apache License 2.0
25 stars 7 forks source link

Extend dunder methods and code simplification for annotations #251

Closed BPdeRooij closed 3 months ago

BPdeRooij commented 3 months ago

This PR implements some new features, refactors the annotations code and aims to simplify it. Most importantly are the addition of AnnotatedGeometry and new dunder methods in WsiAnnotations. It is an initial idea and implementation for features, which could be useful. It would be great to further discuss these ideas and get feedback.

Changes

Changes made to WsiAnnotations:

Further changes and comments:

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.63%. Comparing base (548fc87) to head (faa019e).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #251 +/- ## ========================================== + Coverage 98.53% 98.63% +0.09% ========================================== Files 14 14 Lines 1091 1169 +78 ========================================== + Hits 1075 1153 +78 Misses 16 16 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.