aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-07-24 15:43:57 +0200
committerThomas White <taw@physics.org>2019-07-24 15:44:51 +0200
commit7dd1c93b72e206f3dcb2511beb51ecf7167d75dd (patch)
treebdb3a7afe05d007cdd7b91717a6d3600caca26a2 /src
parenta854a50f3c743ac9881a9b3cba43385aad0c8709 (diff)
indexamajig: Set Gaussian spectrum if one is not provided
Diffstat (limited to 'src')
-rw-r--r--src/process_image.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/process_image.c b/src/process_image.c
index a9bf1cdb..99b01eca 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -375,6 +375,8 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
/* Set beam spectrum for pink beam data */
if ( iargs->spectrum != NULL ) {
image.spectrum = iargs->spectrum;
+ } else {
+ image.spectrum = spectrum_generate_gaussian(image.lambda, image.bw);
}
if ( image_feature_count(image.features) < iargs->min_peaks ) {