aboutsummaryrefslogtreecommitdiff
path: root/src/process_image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-07-31 17:17:40 +0200
committerThomas White <taw@physics.org>2020-07-31 17:18:22 +0200
commite08b543d99ff6107c523b92b9cb08b5f337492a7 (patch)
tree2f998d0e200e6c8b97f031a8f88a9371120f9d3c /src/process_image.c
parent531984799b71b0662f09d6c212614fa27ef2b3a9 (diff)
Move spectrum loading out of indexamajig/process_image
Diffstat (limited to 'src/process_image.c')
-rw-r--r--src/process_image.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/process_image.c b/src/process_image.c
index 179997e2..a04e9468 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -334,13 +334,6 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
} else {
image->div = 0.0;
}
- /* Set beam spectrum */
- 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 ) {
r = chdir(rn);
@@ -444,12 +437,6 @@ out:
sb_shared->n_hadcrystals += any_crystals;
pthread_mutex_unlock(&sb_shared->totals_lock);
- /* Free spectrum only if we generated it for this image */
- if ( iargs->spectrum == NULL ) {
- spectrum_free(image->spectrum);
- image->spectrum = NULL;
- }
-
/* Free image (including detgeom) */
image_free(image);