Skip to content

Commit b5f9dd3

Browse files
authored
Merge branch 'dev' into fix-swinunetr
2 parents eee75b1 + fe3ed44 commit b5f9dd3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

monai/transforms/utility/array.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,12 +1054,11 @@ def __call__(
10541054

10551055
class ConvertToMultiChannelBasedOnBratsClasses(Transform):
10561056
"""
1057-
Convert labels to multi channels based on brats18 classes:
1058-
label 1 is the necrotic and non-enhancing tumor core
1059-
label 2 is the peritumoral edema
1060-
label 4 is the GD-enhancing tumor
1061-
The possible classes are TC (Tumor core), WT (Whole tumor)
1062-
and ET (Enhancing tumor).
1057+
Convert labels to multi channels based on `brats18 <https://www.med.upenn.edu/sbia/brats2018/data.html>`_ classes,
1058+
which include TC (Tumor core), WT (Whole tumor) and ET (Enhancing tumor):
1059+
label 1 is the necrotic and non-enhancing tumor core, which should be counted under TC and WT subregion,
1060+
label 2 is the peritumoral edema, which is counted only under WT subregion,
1061+
label 4 is the GD-enhancing tumor, which should be counted under ET, TC, WT subregions.
10631062
"""
10641063

10651064
backend = [TransformBackends.TORCH, TransformBackends.NUMPY]

0 commit comments

Comments
 (0)