From c52293a3634d447893c081cd1074a2cef293449d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 19 Feb 2011 21:57:52 -0800 Subject: Fix get_q() --- src/detector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3