aboutsummaryrefslogtreecommitdiff
path: root/src/hdf5-file.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-22 15:11:31 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:20 +0100
commitd303975234f0267ae51f84fded34a03bcf263888 (patch)
treea02210b329e3100e2fb4a52f6d220b86a06d34ac /src/hdf5-file.c
parent90651c0677ddd5619d27848043f96ba2d4081d73 (diff)
x,y->fs,ss
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r--src/hdf5-file.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c
index eef85591..f025acee 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -1,5 +1,5 @@
/*
- * hdf5.c
+ * hdf5-file.c
*
* Read/write HDF5 data files
*
@@ -152,14 +152,13 @@ int get_peaks(struct image *image, struct hdfile *f)
for ( i=0; i<size[0]; i++ ) {
- unsigned int x, y;
- float val;
+ float fs, ss, val;
- x = buf[3*i+0];
- y = buf[3*i+1];
+ fs = buf[3*i+0];
+ ss = buf[3*i+1];
val = buf[3*i+2];
- image_add_feature(image->features, x, y, image, val, NULL);
+ image_add_feature(image->features, fs, ss, image, val, NULL);
}
STATUS("Got %i peaks from peak list.\n", (int)size[0]);