diff options
author | Thomas White <taw@physics.org> | 2011-03-29 11:34:07 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:22 +0100 |
commit | abb1edf5301c36a814e65b9851c0848e35f82173 (patch) | |
tree | b7da645e6dbb5d8f83f04a12fdc04ca02c3cbda4 /src | |
parent | 1c13a85b311f7029f87413b4472412546eabd3af (diff) |
Reject peaks from the HDF5 list in panels marked with no_index
Diffstat (limited to 'src')
-rw-r--r-- | src/hdf5-file.c | 5 |
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); } |