aboutsummaryrefslogtreecommitdiff
path: root/src/hdf5-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r--src/hdf5-file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c
index 2979926f..be0b5444 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -153,11 +153,16 @@ int get_peaks(struct image *image, struct hdfile *f)
for ( i=0; i<size[0]; i++ ) {
float fs, ss, val;
+ struct panel *p;
fs = buf[3*i+0];
ss = buf[3*i+1];
val = buf[3*i+2];
+ p = find_panel(image->det, fs, ss);
+ if ( p == NULL ) continue;
+ if ( p->no_index ) continue;
+
image_add_feature(image->features, fs, ss, image, val, NULL);
}