Skip to content

Conversation

petebankhead
Copy link
Member

Introduce new View → Show Z-project overlay toggle.

This adds support to visualise different z-projection overlays within a QuPath viewer whenever a z-stack is open.

Note that the performance isn't great with huge, untiled images... and hasn't been tested with whole slide z-stacks (since I didn't have one to hand). But it seems a useful feature to have when working with 'regular' confocal z-stacks.

z-project-overlays

Reduce the amount of code and iterate differently through the pixels. Despite using `double` for everything, this is about 10x faster on my machine. It may also use less memory, because pixel arrays do not need to be extracted for all z-slices.
Instead of collapsing an entire z-stack to 2D, this makes it possible to apply projections across adjacent slices (e.g. 2 slices above and below the current slice, so 5 slices in total).
Still rough... but now embeds options in a viewer
This reduces the risk of memory errors with large, untiled z-stacks (even if projections are slow).
Don't bind to pixel classification overlay - since we can already toggle with the projection buttons directly.
@petebankhead petebankhead added this to the v0.6.0 milestone Mar 24, 2025
@petebankhead petebankhead merged commit 3c79015 into qupath:main Mar 25, 2025
3 checks passed
@petebankhead petebankhead deleted the z-project branch March 25, 2025 08:58
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