[5943d3]: / rocaseg / datasets / constants.py

Download this file

45 lines (36 with data), 852 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from collections import OrderedDict
"""
OAI iMorphics reference classes (DICOM attribute names). Cartilage tissues
"""
locations_mh53 = OrderedDict([
('Background', 0),
('FemoralCartilage', 1),
('LateralTibialCartilage', 2),
('MedialTibialCartilage', 3),
('PatellarCartilage', 4),
('LateralMeniscus', 5),
('MedialMeniscus', 6),
])
"""
Segmentation predictions. Major cartilage tissues. Joined L and M
"""
locations_f43h = OrderedDict([
('_background', 0),
('femoral', 1),
('tibial', 2),
])
"""
Segmentation predictions. Cartilage tissues. Joined L and M
"""
locations_zp3n = OrderedDict([
('_background', 0),
('femoral', 1),
('tibial', 2),
('patellar', 3),
('menisci', 4),
])
atlas_to_locations = {
'imo': locations_mh53,
'segm': locations_zp3n,
'okoa': locations_f43h,
}