diff options
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/detector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index 41ebcc9a..37328e5f 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -365,7 +365,7 @@ void record_image(struct image *image, int do_poisson) ys = (x-p->min_fs)*p->fsy + (y-p->min_ss)*p->ssy; rx = (xs + p->cnx) / p->res; ry = (ys + p->cny) / p->res; - dsq = sqrt(pow(rx, 2.0) + pow(ry, 2.0)); + dsq = pow(rx, 2.0) + pow(ry, 2.0); /* Projected area of pixel divided by distance squared */ sa = proj_area / (dsq + Lsq); |