✨ Add Feature to Write Model Probabilities as ome.tiff for Overlay#929
✨ Add Feature to Write Model Probabilities as ome.tiff for Overlay#929shaneahmed merged 12 commits intodevelopfrom
ome.tiff for Overlay#929Conversation
- This will help to save probability maps from deep learning models as ome tiff which can be visualized using TIAViz.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #929 +/- ##
===========================================
- Coverage 99.70% 99.69% -0.02%
===========================================
Files 71 71
Lines 8847 8874 +27
Branches 1154 1159 +5
===========================================
+ Hits 8821 8847 +26
Misses 23 23
- Partials 3 4 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Convert the architecture to save per class heatmaps.
ome.tiff for Overlay
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new feature to save NumPy or Zarr arrays as tiled, pyramidal OME-TIFF files containing heatmap visualizations for probability maps generated by segmentation models. The changes include adding a new function “write_probability_heatmap_as_ome_tiff” (and its helper function _tiles) to generate the tiled OME-TIFF and corresponding tests to validate its behavior.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tiatoolbox/utils/misc.py | Adds new functions to tile images and write probability maps as OME-TIFF, with updated and new docstrings. |
| tests/test_utils.py | Introduces tests for error conditions and functional verification for OME-TIFF creation. |
SemanticSegmentorwith the NewEngineABC#866