Skip to content

Add apply_masks option to single-cell image extraction#409

Open
a-o-can wants to merge 1 commit into
MannLabs:mainfrom
a-o-can:feature/extraction-apply-masks
Open

Add apply_masks option to single-cell image extraction#409
a-o-can wants to merge 1 commit into
MannLabs:mainfrom
a-o-can:feature/extraction-apply-masks

Conversation

@a-o-can

@a-o-can a-o-can commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

PR Checklist

  • [x ] This comment contains a description of changes (with reason)
  • Referenced issue is linked
  • Documentation in docs is updated

Description of changes
HDF5CellExtraction previously always multiplied the extracted image channels by the segmentation mask, zeroing out background and neighbouring cells. This adds an apply_masks parameter (default True, preserving current behaviour) to Project.extract and HDF5CellExtraction.process. When set to False, the raw image window is saved without masking, enabling downstream analysis of unmasked single-cell images. The mask channel(s) are still stored either way.

HDF5CellExtraction previously always multiplied the extracted image
channels by the segmentation mask, zeroing out background and
neighbouring cells. This adds an `apply_masks` parameter (default True,
preserving current behaviour) to `Project.extract` and
`HDF5CellExtraction.process`. When set to False, the raw image window is
saved without masking, enabling downstream analysis of unmasked
single-cell images. The mask channel(s) are still stored either way.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant