From 43a607152539d54ee37bc0e173b1b748b75e9880 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 26 Feb 2014 10:53:52 +0000 Subject: Allow setting recon algo in cuda util script --- matlab/tools/astra_create_reconstruction_cuda.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'matlab') 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; -- cgit v1.2.3