forked from cornerstonejs/cornerstone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpetctMetaDataProvider.js
65 lines (58 loc) · 1.9 KB
/
petctMetaDataProvider.js
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
(function (cornerstone) {
"use strict";
function metaDataProvider(type, imageId)
{
if(type === 'imagePlaneModule') {
if (imageId === 'ct://1') {
return {
frameOfReferenceUID: "1.3.6.1.4.1.5962.99.1.2237260787.1662717184.1234892907507.1411.0",
rows: 512,
columns: 512,
rowCosines: {
x: 1,
y: 0,
z: 0
},
columnCosines: {
x: 0,
y: 1,
z: 0
},
imagePositionPatient: {
x: -250,
y: -250,
z: -399.100006
},
rowPixelSpacing: 0.976562,
columnPixelSpacing: 0.976562
};
}
if (imageId === 'pet://1') {
return {
frameOfReferenceUID: "1.3.6.1.4.1.5962.99.1.2237260787.1662717184.1234892907507.1411.0",
rows: 128,
columns: 128,
rowCosines: {
x: 1,
y: 0,
z: 0
},
columnCosines: {
x: 0,
y: 1,
z: 0
},
imagePositionPatient: {
x: -297.65625,
y: -297.65625,
z: -399.12002563476
},
rowPixelSpacing: 4.6875,
columnPixelSpacing: 4.6875
};
}
}
return undefined;
}
cornerstone.metaData.addProvider(metaDataProvider);
}(cornerstone));