aboutsummaryrefslogtreecommitdiff
path: root/src/control.c
blob: e581b06539a41e41ea2f0f82108f6e89f5b1491d (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
/*
 * control.c
 *
 * Common control structure
 *
 * (c) 2007 Thomas White <taw27@cam.ac.uk>
 *
 *  dtr - Diffraction Tomography Reconstruction
 *
 */

#include <inttypes.h>
#include <stdlib.h>
#include <math.h>

#include "control.h"
#include "image.h"

ControlContext *control_ctx_new() {

	ControlContext *ctx;
	
	ctx = malloc(sizeof(ControlContext));

	ctx->x_centre = 0;
	ctx->y_centre = 0;
	ctx->have_centres = 0;
	ctx->cell = NULL;
	ctx->dirax = NULL;
	ctx->images = image_list_new();
	
	return ctx;

}