diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-02-19 21:57:52 -0800 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:15 +0100 |
commit | c52293a3634d447893c081cd1074a2cef293449d (patch) | |
tree | 4f49e5f5ead09a84b2a81cc1f270b1789982c921 /src/detector.c | |
parent | 019ffcd0537c598b231806d617c2472bd5c7b115 (diff) |
Fix get_q()
Diffstat (limited to 'src/detector.c')
-rw-r--r-- | src/detector.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/detector.c b/src/detector.c index 93ee323f..368e5797 100644 --- a/src/detector.c +++ b/src/detector.c @@ -78,8 +78,8 @@ struct rvec get_q(struct image *image, double fs, double ss, /* Convert xs and ys, which are in fast scan/slow scan coordinates, * to x and y */ - xs = fs*p->fsx + ss*p->ssx; - ys = fs*p->fsy + ss*p->ssy; + xs = (fs-p->min_x)*p->fsx + (ss-p->min_y)*p->ssx; + ys = (fs-p->min_x)*p->fsy + (ss-p->min_y)*p->ssy; rx = (xs + p->cx) / p->res; ry = (ys + p->cy) / p->res; |