aboutsummaryrefslogtreecommitdiff
path: root/src/process_image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-03-24 14:48:00 +0100
committerThomas White <taw@physics.org>2017-03-24 14:48:00 +0100
commit1f613c288763a165b6e803d918f9fd8613996212 (patch)
tree957275219c6d87fe36cb3b6091e8dc90358aa0ae /src/process_image.c
parent48f66a24733cca076b56ef5981f79ff690f7e39c (diff)
parent425619c37c3973cd354a667a61e84ccab7d81572 (diff)
Merge branch 'valerio/peakfinder8'
Diffstat (limited to 'src/process_image.c')
-rw-r--r--src/process_image.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/process_image.c b/src/process_image.c
index f3629e0e..e6e6d22a 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -8,7 +8,7 @@
*
* Authors:
* 2010-2017 Thomas White <taw@physics.org>
- * 2014 Valerio Mariani
+ * 2014-2017 Valerio Mariani <valerio.mariani@desy.de>
*
* This file is part of CrystFEL.
*
@@ -191,6 +191,28 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
iargs->use_saturated);
break;
+ case PEAK_PEAKFINDER8:
+ if ( search_peaks_peakfinder8(&image, 2048,
+ iargs->threshold,
+ iargs->min_snr,
+ iargs->min_pix_count,
+ iargs->max_pix_count,
+ iargs->local_bg_radius,
+ iargs->min_res,
+ iargs->max_res,
+ iargs->use_saturated) ) {
+ if ( image.event != NULL ) {
+ ERROR("Failed to find peaks in image %s"
+ "(event %s).\n", image.filename,
+ get_event_string(image.event));
+ } else {
+ ERROR("Failed to find peaks in image %s.",
+ image.filename);
+ }
+
+ }
+ break;
+
}
restore_image_data(image.dp, image.det, prefilter);