aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-02-17 10:38:57 +0100
committerThomas White <taw@bitwiz.org.uk>2010-02-17 10:38:57 +0100
commit8ef8fa59cbd8afac2375c5dbb1acc524ac322fbc (patch)
tree100537dfe02d64ce1b2d59f3c95485bd8b5e2146 /src/index.c
parent858aee656ef46d89bd26095bb88b28574cfe7212 (diff)
WIP on per-panel detector geometry
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/index.c b/src/index.c
index 8faca4db..e9f5cf44 100644
--- a/src/index.c
+++ b/src/index.c
@@ -60,10 +60,10 @@ int map_position(struct image *image, double dx, double dy,
if ( image->fmode == FORMULATION_CLEN ) {
/* Convert pixels to metres */
- x /= image->resolution;
- y /= image->resolution; /* Convert pixels to metres */
+ x /= image->det.panels[p].res;
+ y /= image->det.panels[p].res; /* Convert pixels to metres */
d = sqrt((x*x) + (y*y));
- twotheta = atan2(d, image->camera_len);
+ twotheta = atan2(d, image->det.panels[p].clen);
} else if (image->fmode == FORMULATION_PIXELSIZE ) {