Skip to content

Add PixelMaskCollection class#404

Merged
psomhorst merged 14 commits intodevelopfrom
features/pixelmaskcollection
Aug 8, 2025
Merged

Add PixelMaskCollection class#404
psomhorst merged 14 commits intodevelopfrom
features/pixelmaskcollection

Conversation

@psomhorst
Copy link
Copy Markdown
Contributor

This PR add the PixelMaskCollection class, based on the recently added PixelMask.

The main goal for this class is to be able to apply multiple masks to data, returning a dictionary of individual results. You can also combine the contained masks into a single mask by summing them ("sum") or multiplying them ("product").

Masks in a collection can be labelled or anonymous. Labelled is useful when working with pre-defined masks, e.g., 'ventral' and 'dorsal', while anonymous masks are useful when working with an unpredictable number of masks, e.g., ROI definition based on thresholds resulting in multiple separate areas that can be independently labelled.

@psomhorst psomhorst merged commit ceb3b91 into develop Aug 8, 2025
3 checks passed
@psomhorst psomhorst deleted the features/pixelmaskcollection branch August 8, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants