blob: db897367cb49ccddb2e68e43f1046a2780fb1882 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*
* itrans.c
*
* Parameterise features in an image for reconstruction
*
* (c) 2007 Thomas White <taw27@cam.ac.uk>
* Gordon Ball <gfb21@cam.ac.uk>
*
* dtr - Diffraction Tomography Reconstruction
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "control.h"
#include "reflections.h"
#include "itrans-threshold.h"
#include "itrans-zaefferer.h"
#include "itrans-lsq.h"
#include "itrans-stat.h"
void itrans_process_image(ImageRecord image, ControlContext *ctx) {
unsigned int n_reflections;
switch ( ctx->psmode ) {
case PEAKSEARCH_THRESHOLD : itrans_peaksearch_threshold(image, ctx); break;
case PEAKSEARCH_ADAPTIVE_THRESHOLD : itrans_peaksearch_adaptive_threshold(image, ctx); break;
case PEAKSEARCH_LSQ : itrans_peaksearch_lsq(image, ctx); break;
case PEAKSEARCH_ZAEFFERER : itrans_peaksearch_zaefferer(image, ctx); break;
case PEAKSEARCH_STAT : itrans_peaksearch_stat(image, ctx); break;
default: n_reflections = 0;
}
}
|