diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-02-17 10:38:57 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-02-17 10:38:57 +0100 |
commit | 8ef8fa59cbd8afac2375c5dbb1acc524ac322fbc (patch) | |
tree | 100537dfe02d64ce1b2d59f3c95485bd8b5e2146 /src/index.c | |
parent | 858aee656ef46d89bd26095bb88b28574cfe7212 (diff) |
WIP on per-panel detector geometry
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 6 |
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 ) { |