aboutsummaryrefslogtreecommitdiff
path: root/src/process_image.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-05-03 11:43:00 +0200
committerThomas White <taw@physics.org>2023-05-05 10:59:45 +0200
commit309b65d75993abbc9804b392117baea3a1101e3a (patch)
tree361ca8f1cc935d621e0d3f1a16c6426525490b24 /src/process_image.h
parent5c1373e53709bd59403716b497c8c6c94b9143c4 (diff)
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.
Diffstat (limited to 'src/process_image.h')
-rw-r--r--src/process_image.h24
1 files changed, 1 insertions, 23 deletions
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 */