aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-05-23 14:12:52 +0200
committerThomas White <taw@physics.org>2013-05-27 17:33:15 +0200
commitbc6e617c339fdd4e1be6042cb8b70fe9a704c863 (patch)
treed83c779d4917a559ded079f99117b53ede59ca9f /libcrystfel/src/detector.c
parent4fd346391387f740c29561257a5af3fdfdd56700 (diff)
Individual panel arrays
Diffstat (limited to 'libcrystfel/src/detector.c')
-rw-r--r--libcrystfel/src/detector.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index 37328e5f..09f33d5d 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -1003,8 +1003,12 @@ out:
p->xss = -p->fsy / d;
p->yss = p->fsx / d;
+ p->w = p->max_fs - p->min_fs + 1;
+ p->h = p->max_ss - p->min_ss + 1;
+
}
+
find_min_max_d(det);
if ( reject ) return NULL;
@@ -1129,6 +1133,9 @@ struct detector *simple_geometry(const struct image *image)
geom->panels[0].yfs = 0;
geom->panels[0].yss = 1;
+ geom->panels[0].w = image->width;
+ geom->panels[0].h = image->height;
+
find_min_max_d(geom);
return geom;