From 309b65d75993abbc9804b392117baea3a1101e3a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 3 May 2023 11:43:00 +0200 Subject: Move peak search parameters into separate structure This change takes the peak parameters structure from gui_project.h, moves it to libcrystfel/peaks.h and uses it everywhere. It should slightly reduce the hassle involved with adding a new parameter. Four parameters (noisefilter, median_filter, check_hdf5_snr, use_saturated) were previously not part of the GUI project structure. Now they are, via the new structure. However, they are not yet exposed via the GUI and just take their default values. --- src/process_image.h | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'src/process_image.h') diff --git a/src/process_image.h b/src/process_image.h index feb3f81c..bb68ce19 100644 --- a/src/process_image.h +++ b/src/process_image.h @@ -59,29 +59,7 @@ struct index_args DataSourceType data_format; /* Peak search */ - enum peak_search_method peaks; - float pk_inn; - float pk_mid; - float pk_out; - int noisefilter; - int median_filter; - float threshold; - float min_sq_gradient; - float min_snr; - int check_hdf5_snr; - int half_pixel_shift; - int min_res; - int max_res; - int min_pix_count; - int max_pix_count; - int local_bg_radius; - int use_saturated; - int no_revalidate; - float min_snr_biggest_pix; - float min_snr_peak_pix; - float min_sig; - float min_peak_over_neighbour; - int peakfinder8_fast; + struct peak_params peak_search; void *pf_private; /* Hit finding */ -- cgit v1.2.3