aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/detector.c4
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;