diff options
author | Thomas White <taw@physics.org> | 2013-03-21 12:20:47 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-03-21 12:20:47 +0100 |
commit | c88c59d6239d3f631964f9a1f541ce9a78ffdc7e (patch) | |
tree | 0e4c4395cb6014c46ff3b8368e6aef814b976dde /libcrystfel/src/detector.c | |
parent | 5586bde15ca4b023816f37b53c6d173c1ab50b7b (diff) | |
parent | ef7d9bbfc1242221b5270e960c7b68b4964c6d87 (diff) |
Merge branch 'master' of ssh://git.bitwiz.org.uk/crystfel
Diffstat (limited to 'libcrystfel/src/detector.c')
-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); |