diff options
Diffstat (limited to 'libcrystfel/src/detector.c')
-rw-r--r-- | libcrystfel/src/detector.c | 7 |
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; |