Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions monai/transforms/utility/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,12 +1054,11 @@ def __call__(

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

backend = [TransformBackends.TORCH, TransformBackends.NUMPY]
Expand Down
Loading