diff options
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 ) { |