diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2021-11-23 13:43:30 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2021-11-23 13:44:27 +0100 |
commit | 4edf2032ee5b63d05e70c934f0508af67b30bdda (patch) | |
tree | 1a4816f4cd59dd72efb4fb06ec3f4c5154b3b774 /matlab/tools | |
parent | 73150e02dc275199d62de83d20a6d2d949248a6e (diff) | |
download | astra-4edf2032ee5b63d05e70c934f0508af67b30bdda.tar.gz astra-4edf2032ee5b63d05e70c934f0508af67b30bdda.tar.bz2 astra-4edf2032ee5b63d05e70c934f0508af67b30bdda.tar.xz astra-4edf2032ee5b63d05e70c934f0508af67b30bdda.zip |
Clarify astra_create_proj_geom error messages
Issue #259
Diffstat (limited to 'matlab/tools')
-rw-r--r-- | matlab/tools/astra_create_proj_geom.m | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/matlab/tools/astra_create_proj_geom.m b/matlab/tools/astra_create_proj_geom.m index 9b2fbd4..28eb498 100644 --- a/matlab/tools/astra_create_proj_geom.m +++ b/matlab/tools/astra_create_proj_geom.m @@ -97,7 +97,7 @@ function proj_geom = astra_create_proj_geom(type, varargin) if strcmp(type,'parallel') if numel(varargin) < 3 - error('not enough variables: astra_create_proj_geom(parallel, detector_spacing, det_count, angles)'); + error('not enough input arguments: astra_create_proj_geom(parallel, detector_spacing, det_count, angles)'); end proj_geom = struct( ... 'type', 'parallel', ... @@ -108,7 +108,7 @@ if strcmp(type,'parallel') elseif strcmp(type,'parallel_vec') if numel(varargin) < 2 - error('not enough variables: astra_create_proj_geom(parallel_vec, det_count, V') + error('not enough input arguments: astra_create_proj_geom(parallel_vec, det_count, V') end if size(varargin{2}, 2) ~= 6 error('V should be a Nx6 matrix, with N the number of projections') @@ -121,7 +121,7 @@ elseif strcmp(type,'parallel_vec') elseif strcmp(type,'fanflat') if numel(varargin) < 5 - error('not enough variables: astra_create_proj_geom(fanflat, det_width, det_count, angles, source_origin, source_det)'); + error('not enough input arguments: astra_create_proj_geom(fanflat, det_width, det_count, angles, source_origin, source_det)'); end proj_geom = struct( ... 'type', 'fanflat', ... @@ -134,7 +134,7 @@ elseif strcmp(type,'fanflat') elseif strcmp(type,'fanflat_vec') if numel(varargin) < 2 - error('not enough variables: astra_create_proj_geom(fanflat_vec, det_count, V') + error('not enough input arguments: astra_create_proj_geom(fanflat_vec, det_count, V') end if size(varargin{2}, 2) ~= 6 error('V should be a Nx6 matrix, with N the number of projections') @@ -147,7 +147,7 @@ elseif strcmp(type,'fanflat_vec') elseif strcmp(type,'parallel3d') if numel(varargin) < 5 - error('not enough variables: astra_create_proj_geom(parallel3d, detector_spacing_x, detector_spacing_y, det_row_count, det_col_count, angles)'); + error('not enough input arguments: astra_create_proj_geom(parallel3d, detector_spacing_x, detector_spacing_y, det_row_count, det_col_count, angles)'); end proj_geom = struct( ... 'type', 'parallel3d', ... @@ -159,7 +159,7 @@ elseif strcmp(type,'parallel3d') ); elseif strcmp(type,'cone') if numel(varargin) < 7 - error('not enough variables: astra_create_proj_geom(cone, detector_spacing_x, detector_spacing_y, det_row_count, det_col_count, angles, source_origin, source_det)'); + error('not enough input arguments: astra_create_proj_geom(cone, detector_spacing_x, detector_spacing_y, det_row_count, det_col_count, angles, source_origin, source_det)'); end proj_geom = struct( ... 'type', 'cone', ... @@ -173,7 +173,7 @@ elseif strcmp(type,'cone') ); elseif strcmp(type,'cone_vec') if numel(varargin) < 3 - error('not enough variables: astra_create_proj_geom(cone_vec, det_row_count, det_col_count, V') + error('not enough input arguments: astra_create_proj_geom(cone_vec, det_row_count, det_col_count, V') end if size(varargin{3}, 2) ~= 12 error('V should be a Nx12 matrix, with N the number of projections') @@ -186,7 +186,7 @@ elseif strcmp(type,'cone_vec') ); elseif strcmp(type,'parallel3d_vec') if numel(varargin) < 3 - error('not enough variables: astra_create_proj_geom(parallel3d_vec, det_row_count, det_col_count, V') + error('not enough input arguments: astra_create_proj_geom(parallel3d_vec, det_row_count, det_col_count, V') end if size(varargin{3}, 2) ~= 12 error('V should be a Nx12 matrix, with N the number of projections') @@ -199,7 +199,7 @@ elseif strcmp(type,'parallel3d_vec') ); elseif strcmp(type,'sparse_matrix') if numel(varargin) < 3 - error('not enough variables: astra_create_proj_geom(sparse_matrix, det_width, det_count, angles, matrix_id)') + error('not enough input arguments: astra_create_proj_geom(sparse_matrix, det_width, det_count, angles, matrix_id)') end proj_geom = struct( ... 'type', 'sparse_matrix', ... |