diff options
author | Nicola Vigano <nicola.vigano@esrf.fr> | 2015-10-07 17:25:06 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-10-09 11:39:39 +0200 |
commit | 0ebd8dfe60cc0d1f05d65d3840278defce0da091 (patch) | |
tree | 129bfa973c6fc3a409b09625992516b757ab693a /matlab | |
parent | 11717f66b49fbe41faf923f267c6893ce9af46ad (diff) | |
download | astra-0ebd8dfe60cc0d1f05d65d3840278defce0da091.tar.gz astra-0ebd8dfe60cc0d1f05d65d3840278defce0da091.tar.bz2 astra-0ebd8dfe60cc0d1f05d65d3840278defce0da091.tar.xz astra-0ebd8dfe60cc0d1f05d65d3840278defce0da091.zip |
Add options passing to projectors from matlab
Signed-off-by: Nicola Vigano <nicola.vigano@esrf.fr>
Diffstat (limited to 'matlab')
-rw-r--r-- | matlab/tools/astra_create_projector.m | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/matlab/tools/astra_create_projector.m b/matlab/tools/astra_create_projector.m index da9c083..9bbef9e 100644 --- a/matlab/tools/astra_create_projector.m +++ b/matlab/tools/astra_create_projector.m @@ -1,7 +1,7 @@ -function proj_id = astra_create_projector(type, proj_geom, vol_geom) +function proj_id = astra_create_projector(type, proj_geom, vol_geom, options) %-------------------------------------------------------------------------- -% proj_id = astra_create_projector(type, proj_geom, vol_geom) +% proj_id = astra_create_projector(type, proj_geom, vol_geom, options) % % Create a new projector object based on projection and volume geometry. % Used when the default values of each projector are sufficient. @@ -9,6 +9,7 @@ function proj_id = astra_create_projector(type, proj_geom, vol_geom) % type: type of the projector. 'blob', 'line', 'linear' 'strip', ... See API for more information. % proj_geom: MATLAB struct containing the projection geometry. % vol_geom: MATLAB struct containing the volume geometry. +% options: Optional MATLAB struct containing projector options (like: 'GPUindex', 'DetectorSuperSampling', and 'VoxelSuperSampling') % proj_id: identifier of the projector as it is now stored in the astra-library. %-------------------------------------------------------------------------- %-------------------------------------------------------------------------- @@ -38,6 +39,10 @@ if strcmp(type,'blob') cfg_proj.Kernel.KernelValues = blob_values; end +if exist('options', 'var') + cfg_proj.options = options; +end + if strcmp(type,'linear3d') || strcmp(type,'linearcone') || strcmp(type,'cuda3d') proj_id = astra_mex_projector3d('create', cfg_proj); else |