aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
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 /libcrystfel
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 'libcrystfel')
-rw-r--r--libcrystfel/src/peaks.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/libcrystfel/src/peaks.h b/libcrystfel/src/peaks.h
index d6d5c1f9..89634269 100644
--- a/libcrystfel/src/peaks.h
+++ b/libcrystfel/src/peaks.h
@@ -58,6 +58,38 @@ enum peak_search_method {
PEAK_ERROR
};
+
+struct peak_params {
+
+ enum peak_search_method method;
+
+ float threshold; /* zaef, pf8 */
+ float min_sq_gradient; /* zaef */
+ float min_snr; /* zaef, pf8 */
+ int min_pix_count; /* pf8 */
+ int max_pix_count; /* pf8 */
+ int local_bg_radius; /* pf8 */
+ int min_res; /* pf8 */
+ int max_res; /* pf8 */
+ int peakfinder8_fast; /* pf8 */
+
+ float min_snr_biggest_pix; /* pf9 */
+ float min_snr_peak_pix; /* pf9 */
+ float min_sig; /* pf9 */
+ float min_peak_over_neighbour; /* pf9 */
+
+ float pk_inn;
+ float pk_mid;
+ float pk_out;
+ int half_pixel_shift; /* cxi, hdf5 */
+ int revalidate;
+ int noisefilter;
+ int median_filter;
+ int check_hdf5_snr;
+ int use_saturated;
+};
+
+
extern const char *str_peaksearch(enum peak_search_method meth);
extern enum peak_search_method parse_peaksearch(const char *arg);