Skip to content

Commit

Permalink
🆕 Use Annotations as a Filter for Patch Extraction (#822)
Browse files Browse the repository at this point in the history
- Adds the ability to get patches filtered by class or label using AnnotationStore.
- Allows the user to provide a path to an annotation store as the mask. 
  - By default the mask will then be built out of all the annotations, but the user can also provide any filter that works in the annotation store, and have only those annotations make the mask. 

For example, if the user have some pathologist annotations with some regions, and they would only want to extract patches which have some overlap with regions labelled 'tumor' or any other class, they would just need to provide the appropriate string ("props['label'] == 'tumor'" for example).

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
measty and pre-commit-ci[bot] authored Oct 18, 2024
1 parent 0b857c7 commit 76f02f8
Show file tree
Hide file tree
Showing 4 changed files with 1,133 additions and 692 deletions.
Loading

0 comments on commit 76f02f8

Please sign in to comment.