/* * mapping.c * * 3D Mapping * * (c) 2007 Thomas White * * dtr - Diffraction Tomography Reconstruction * */ #include #include #include #include "reflections.h" #include "control.h" #include "itrans.h" ReflectionContext *mapping_create(ControlContext *ctx) { ReflectionContext *rctx; int i; /* Create reflection context */ rctx = reflection_init(); /* Pass all images through itrans * (let itrans add the reflections to rctx for now) */ ctx->reflectionctx = rctx; for ( i=0; in_images; i++ ) { itrans_process_image(ctx->images[i], ctx); } return rctx; }