Commit 089f02d
Add support for configurable GD-enhancing tumor label in ConvertToMul… (#8779)
**Description**
This PR introduces an `et_label` parameter to
`ConvertToMultiChannelBasedOnBratsClasses` to easily support the BraTS
2023 dataset conventions without breaking backwards compatibility.
**Motivation and Context**
Historically (BraTS 18-21), the Enhancing Tumor (ET) label was 4.
However, starting with the BraTS 2023 Adult Glioma (GLI) dataset, the ET
label was shifted to 3. Because the original transform hardcoded the ET
label as 4, it fails to recognize the ET channel in newer datasets and
generates empty masks.
By parameterizing `et_label` and defaulting it to 4, existing pipelines
remain 100% unaffected, while BraTS 23 users can now simply pass
`et_label=3` to utilize the standard sub-region extraction (TC, WT, ET).
**Types of changes**
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
---------
Signed-off-by: Abdessamad <abdoomis6@gmail.com>
Signed-off-by: Abdessamad Misdak <abdoomis6@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>1 parent ee5b4d4 commit 089f02d
4 files changed
Lines changed: 74 additions & 8 deletions
File tree
- monai/transforms/utility
- tests/transforms
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
1052 | | - | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1053 | 1059 | | |
1054 | 1060 | | |
1055 | 1061 | | |
1056 | 1062 | | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
1057 | 1068 | | |
1058 | 1069 | | |
1059 | 1070 | | |
1060 | 1071 | | |
1061 | 1072 | | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1065 | 1080 | | |
1066 | 1081 | | |
1067 | 1082 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1297 | 1297 | | |
1298 | 1298 | | |
1299 | 1299 | | |
1300 | | - | |
| 1300 | + | |
1301 | 1301 | | |
1302 | 1302 | | |
1303 | | - | |
| 1303 | + | |
1304 | 1304 | | |
1305 | 1305 | | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
1306 | 1314 | | |
1307 | 1315 | | |
1308 | 1316 | | |
1309 | 1317 | | |
1310 | | - | |
| 1318 | + | |
1311 | 1319 | | |
1312 | | - | |
| 1320 | + | |
1313 | 1321 | | |
1314 | 1322 | | |
1315 | 1323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
49 | 69 | | |
50 | 70 | | |
51 | 71 | | |
| |||
54 | 74 | | |
55 | 75 | | |
56 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
57 | 89 | | |
58 | 90 | | |
59 | 91 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
35 | 46 | | |
36 | 47 | | |
37 | 48 | | |
0 commit comments