blob: 3472ff8aa14f3778a73c223796f3950b67497053 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* Set up detector configuration */
image.det.n_panels = 2;
image.det.panels = malloc(image.det.n_panels*sizeof(struct panel));
/* Upper panel */
image.det.panels[0].min_x = 0;
image.det.panels[0].max_x = 1023;
image.det.panels[0].min_y = 512;
image.det.panels[0].max_y = 1023;
image.det.panels[0].cx = 512.0;
image.det.panels[0].cy = 502.0;
image.det.panels[0].clen = 50.0e-3;
image.det.panels[0].res = 13333.3; /* 75 micron pixel size */
/* Lower panel */
image.det.panels[1].min_x = 0;
image.det.panels[1].max_x = 1023;
image.det.panels[1].min_y = 0;
image.det.panels[1].max_y = 511;
image.det.panels[1].cx = 512.0;
image.det.panels[1].cy = 522.0;
image.det.panels[1].clen = 50.0e-3;
image.det.panels[1].res = 13333.3; /* 75 micron pixel size */
|