12
detector_offset_u = 0;
13
detector_offset_v = 0;
14
detector_offset_z = 0;
16
u_detector_r = [1 0 0];
17
v_detector_r = [0 1 0];
18
n_detector_r = [0 0 1];
19
proj_vol = zeros(n_voxels,n_voxels,n_proj);
25
x_grid = (1:1:n_voxels)-x_o;
26
y_grid = (n_voxels:-1:1)-y_o;
27
z_grid = (1:1:n_voxels)-z_o;
29
vox_size = pix_size/16;
31
x_grid = single(x_grid*vox_size);
32
y_grid = single(y_grid*vox_size);
33
z_grid = single(z_grid*vox_size);
35
[slice_x,slice_y] = meshgrid(x_grid,y_grid);
39
vol = fdk(int32(n_voxels),...
43
single(detector_size),...
45
single(cor_offset),...
46
single(detector_offset_u),...
47
single(detector_offset_v),...
48
single(detector_offset_z),...
50
single(u_detector_r),...
51
single(v_detector_r),...
52
single(n_detector_r),...
b'\\ No newline at end of file'