summaryrefslogtreecommitdiffstats
path: root/matlab
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be>2014-02-26 10:53:52 +0000
committerwpalenst <WillemJan.Palenstijn@uantwerpen.be>2014-02-26 10:53:52 +0000
commit43a607152539d54ee37bc0e173b1b748b75e9880 (patch)
tree255b2ab74e411cf43641f796a6257ee286b0f97c /matlab
parentd947345c84919828977a02bfae3982fdd2c7a651 (diff)
downloadastra-43a607152539d54ee37bc0e173b1b748b75e9880.tar.gz
astra-43a607152539d54ee37bc0e173b1b748b75e9880.tar.bz2
astra-43a607152539d54ee37bc0e173b1b748b75e9880.tar.xz
astra-43a607152539d54ee37bc0e173b1b748b75e9880.zip
Allow setting recon algo in cuda util script
Diffstat (limited to 'matlab')
-rw-r--r--matlab/tools/astra_create_reconstruction_cuda.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/matlab/tools/astra_create_reconstruction_cuda.m b/matlab/tools/astra_create_reconstruction_cuda.m
index b428eb5..726aa98 100644
--- a/matlab/tools/astra_create_reconstruction_cuda.m
+++ b/matlab/tools/astra_create_reconstruction_cuda.m
@@ -5,7 +5,7 @@ function [recon_id, recon] = astra_create_reconstruction_cuda(rec_type, proj_geo
%
% Create a GPU based iterative reconstruction.
%
-% rec_type: reconstruction type, only 'SIRT_CUDA' for now
+% rec_type: reconstruction type, defaults to 'SIRT_CUDA' if empty
% proj_geom: projection geometry struct
% vol_geom: volume geometry struct
% sinogram: sinogram data OR sinogram identifier
@@ -40,6 +40,10 @@ end
% create reconstruction object
recon_id = astra_mex_data2d('create', '-vol', vol_geom, 0);
+if strcmp(rec_type,'')
+ rec_type = 'SIRT_CUDA';
+end
+
% configure
cfg = astra_struct('SIRT_CUDA');
cfg.ProjectionGeometry = proj_geom;