diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-02-20 03:11:29 -0800 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:15 +0100 |
commit | 941556dbe66c7f13f0659ebdc139344193eb3e7c (patch) | |
tree | 12ddd2a8b252bbfda158930f89042789cc0b6523 /src/calibrate_detector.c | |
parent | c52293a3634d447893c081cd1074a2cef293449d (diff) |
s/min_x/min_fs/ and so on
Diffstat (limited to 'src/calibrate_detector.c')
-rw-r--r-- | src/calibrate_detector.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/calibrate_detector.c b/src/calibrate_detector.c index 78872bad..20503388 100644 --- a/src/calibrate_detector.c +++ b/src/calibrate_detector.c @@ -58,8 +58,8 @@ static void split_image(struct image *image) p = &det->panels[i]; - width = 1 + p->max_x - p->min_x; - height = 1 + p->max_y - p->min_y; + width = 1 + p->max_fs - p->min_fs; + height = 1 + p->max_ss - p->min_ss; data = malloc(width*height*sizeof(float)); snprintf(filename, 1023, "%s-%i.h5", image->filename, i); @@ -71,8 +71,8 @@ static void split_image(struct image *image) int im_x, im_y; - im_x = x+p->min_x; - im_y = y+p->min_y; + im_x = x+p->min_fs; + im_y = y+p->min_ss; data[x+width*y] = image->data[im_x+image->width*im_y]; |