diff options
Diffstat (limited to 'src/process_image.h')
-rw-r--r-- | src/process_image.h | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/src/process_image.h b/src/process_image.h new file mode 100644 index 00000000..f2f034d9 --- /dev/null +++ b/src/process_image.h @@ -0,0 +1,94 @@ +/* + * process_image.h + * + * The processing pipeline for one image + * + * Copyright © 2012-2013 Deutsches Elektronen-Synchrotron DESY, + * a research centre of the Helmholtz Association. + * + * Authors: + * 2010-2013 Thomas White <taw@physics.org> + * + * This file is part of CrystFEL. + * + * CrystFEL is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * CrystFEL is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with CrystFEL. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#ifndef PROCESS_IMAGE_H +#define PROCESS_IMAGE_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + + +enum { + PEAK_ZAEF, + PEAK_HDF5, +}; + + +/* Information about the indexing process which is common to all patterns */ +struct index_args +{ + UnitCell *cell; + int cmfilter; + int noisefilter; + int satcorr; + int closer; + int bgsub; + float threshold; + float min_gradient; + float min_snr; + double min_int_snr; + struct detector *det; + IndexingMethod *indm; + IndexingPrivate **ipriv; + int peaks; /* Peak detection method */ + float tols[4]; + struct beam_params *beam; + char *element; + char *hdf5_peak_path; + float ir_inn; + float ir_mid; + float ir_out; + struct copy_hdf5_field *copyme; + int integrate_saturated; + int use_saturated; + int no_revalidate; + int integrate_found; + int stream_peaks; + int stream_refls; + int res_cutoff; +}; + + +/* Information about the indexing process for one pattern */ +struct pattern_args +{ + /* "Input" */ + char *filename; + + /* "Output" */ + int n_crystals; +}; + + +extern void process_image(const struct index_args *iargs, + struct pattern_args *pargs, Stream *st, + int cookie); + + +#endif /* PROCESS_IMAGEs_H */ |