summaryrefslogtreecommitdiffstats
path: root/matlab/tools
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2018-12-12 14:45:38 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2018-12-12 16:10:47 +0100
commit3276485c96636cd38248908ff3575282654ff335 (patch)
tree426f5a84fc3d11a8c2436deff5933dd707c8793a /matlab/tools
parent40979a6f4ab678a2f57ccaf8aede1156713e3bf8 (diff)
downloadastra-3276485c96636cd38248908ff3575282654ff335.tar.gz
astra-3276485c96636cd38248908ff3575282654ff335.tar.bz2
astra-3276485c96636cd38248908ff3575282654ff335.tar.xz
astra-3276485c96636cd38248908ff3575282654ff335.zip
Reorganize functions into packages/private functions
This also replaces modifying the path with a request to the user to modify the path.
Diffstat (limited to 'matlab/tools')
-rw-r--r--matlab/tools/astra_plot_geom.m10
1 files changed, 6 insertions, 4 deletions
diff --git a/matlab/tools/astra_plot_geom.m b/matlab/tools/astra_plot_geom.m
index 3a654fd..62eed79 100644
--- a/matlab/tools/astra_plot_geom.m
+++ b/matlab/tools/astra_plot_geom.m
@@ -64,14 +64,16 @@ function [] = astra_plot_geom(geometry, varargin)
% Contact: astra@astra-toolbox.com
% Website: http://www.astra-toolbox.com/
%--------------------------------------------------------------------------
- addpath(genpath('../algorithms/plot_geom')); % add plot_geom tools to matlab path
+ if exist('astra_create_example_cone') ~= 2
+ error('Please add astra/algorithms/plot_geom to your path to use this function')
+ end
if is_vol_geom(geometry)
- draw_vol_geom(geometry, varargin{:});
+ draw.draw_vol_geom(geometry, varargin{:});
elseif is_proj_geom(geometry)
- draw_proj_geom(geometry, varargin{:});
+ draw.draw_proj_geom(geometry, varargin{:});
elseif ischar(geometry) % assume 'geometry' is a path to a CAD file
- draw_cad_phantom(geometry, varargin{:});
+ draw.draw_cad_phantom(geometry, varargin{:});
end
% ---- helper functions ----