diff options
author | Thomas White <taw@physics.org> | 2020-07-31 17:17:40 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-31 17:18:22 +0200 |
commit | e08b543d99ff6107c523b92b9cb08b5f337492a7 (patch) | |
tree | 2f998d0e200e6c8b97f031a8f88a9371120f9d3c /src/process_image.c | |
parent | 531984799b71b0662f09d6c212614fa27ef2b3a9 (diff) |
Move spectrum loading out of indexamajig/process_image
Diffstat (limited to 'src/process_image.c')
-rw-r--r-- | src/process_image.c | 13 |
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); |