/* * itrans.c * * Parameterise features in an image for reconstruction * * (c) 2007 Thomas White * Gordon Ball * * dtr - Diffraction Tomography Reconstruction * */ #ifdef HAVE_CONFIG_H #include #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; } }