diff options
Diffstat (limited to 'matlab/tools')
-rw-r--r-- | matlab/tools/astra_create_reconstruction_cuda.m | 6 |
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; |