You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GPU-accelerated stain normalization tools for histopathological images. Compatible with PyTorch, TensorFlow, and Numpy.
9
-
Normalization algorithms currently implemented:
8
+
GPU-accelerated stain tools for histopathological images. Compatible with PyTorch, TensorFlow, and Numpy.
10
9
10
+
Normalization algorithms currently implemented:
11
11
- Macenko [\[1\]](#reference) (ported from [numpy implementation](https://github.com/schaugf/HEnorm_python))
12
12
- Reinhard [\[2\]](#reference)
13
13
- Modified Reinhard [\[3\]](#reference)
14
+
- Multi-target Macenko [\[4\]](#reference)
15
+
16
+
Augmentation algorithms currently implemented:
17
+
- Macenko-Aug [\[1\]](#reference) (inspired by [StainTools](https://github.com/Peter554/StainTools))
14
18
15
19
## Installation
16
20
@@ -52,10 +56,12 @@ norm, H, E = normalizer.normalize(I=t_to_transform, stains=True)
52
56
| Macenko |✓|✓|✓|
53
57
| Reinhard |✓|✓|✓|
54
58
| Modified Reinhard |✓|✓|✓|
59
+
| Multi-target Macenko |✗|✓|✗|
60
+
| Macenko-Aug |✓|✓|✓|
55
61
56
62
## Backend comparison
57
63
58
-
Results with 10 runs per size on a Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz
64
+
Runtimes using the Macenko algorithm using different backends. Metrics were calculated from 10 repeated runs for each quadratic image size on an Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz.
59
65
60
66
| size | numpy avg. time | torch avg. time | tf avg. time |
@@ -73,15 +79,15 @@ Results with 10 runs per size on a Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz
73
79
-[1] Macenko, Marc et al. "A method for normalizing histology slides for quantitative analysis." 2009 IEEE International Symposium on Biomedical Imaging: From Nano to Macro. IEEE, 2009.
74
80
-[2] Reinhard, Erik et al. "Color transfer between images." IEEE Computer Graphics and Applications. IEEE, 2001.
75
81
-[3] Roy, Santanu et al. "Modified Reinhard Algorithm for Color Normalization of Colorectal Cancer Histopathology Images". 2021 29th European Signal Processing Conference (EUSIPCO), IEEE, 2021.
82
+
-[4] Ivanov, Desislav et al. "Multi-target stain normalization for histology slides". arXiv (preprint). 2024.
76
83
77
84
## Citing
78
85
79
86
If you find this software useful for your research, please cite it as:
80
87
81
88
```bibtex
82
89
@software{barbano2022torchstain,
83
-
author = {Carlo Alberto Barbano and
84
-
André Pedersen},
90
+
author = {Carlo Alberto Barbano and André Pedersen},
0 commit comments