summaryrefslogtreecommitdiffstats
path: root/matlab/algorithms/DART/tools/dart_scheduler.m
blob: 73db4059ca5b8d24534c0069b10cd812460d0fc0 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
%--------------------------------------------------------------------------
% This file is part of the ASTRA Toolbox
%
% Copyright: 2010-2018, imec Vision Lab, University of Antwerp
%            2014-2018, CWI, Amsterdam
% License: Open Source under GPLv3
% Contact: astra@astra-toolbox.com
% Website: http://www.astra-toolbox.com/
%--------------------------------------------------------------------------

function dart_scheduler(D_tmpl, iterations, settings)


for base_index = 1:numel(settings.base_loop)
	
	% create new DART object
	D = DART(settings.base_loop{base_index});

	dart_scheduler1D(D, iterations, settings.parameter1);
	
	% copy from templates
	D.tomography = D_tmpl.tomography;
	D.smoothing = D_tmpl.smoothing;
	D.segmentation = D_tmpl.segmentation;
	D.masking = D_tmpl.masking;
	D.statistics = D_tmpl.statistics;
	D.output = D_tmpl.output;	
	
	% set output options
	D.output = OutputScheduler();
	D.output.directory = output_folder{base_index};
	
	% run DART
	D = D.initialize();
	D = D.iterate(iterations);
	
end

end

function dart_scheduler1d(D, iterations, parameter_loop1)

end