Skip to content

Commit 76f02f8

Browse files
🆕 Use Annotations as a Filter for Patch Extraction (#822)
- 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>
1 parent 0b857c7 commit 76f02f8

4 files changed

Lines changed: 1133 additions & 692 deletions

File tree

0 commit comments

Comments
 (0)