Support Z-projection overlays#1810
Merged
petebankhead merged 10 commits intoqupath:mainfrom Mar 25, 2025
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.