summaryrefslogtreecommitdiffstats
path: root/matlab
diff options
context:
space:
mode:
authorvincentvn <vincent.vn@gmail.com>2017-10-05 13:48:01 +0200
committerWillem Jan Palenstijn <wjp@usecode.org>2017-10-05 13:48:01 +0200
commitae9a45df6da93742d0edbbbc3d57e5497b119839 (patch)
tree4f3c7183025eeb60787d55f93bc80198dc42fb5f /matlab
parentdd24cce853ff3b28035b8723ab271cafb4272917 (diff)
downloadastra-ae9a45df6da93742d0edbbbc3d57e5497b119839.tar.gz
astra-ae9a45df6da93742d0edbbbc3d57e5497b119839.tar.bz2
astra-ae9a45df6da93742d0edbbbc3d57e5497b119839.tar.xz
astra-ae9a45df6da93742d0edbbbc3d57e5497b119839.zip
added vol_geom and proj_geom to the properties (#120)
Add vol_geom and proj_geom to the properties The opTomo operator has the volume and projection geometries as properties ( SetAccess = private, GetAccess = public ). This way you can all easily access all information about the geometry if you passed the opTomo object to a function.
Diffstat (limited to 'matlab')
-rw-r--r--matlab/tools/opTomo.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/matlab/tools/opTomo.m b/matlab/tools/opTomo.m
index aed2f29..3ae1163 100644
--- a/matlab/tools/opTomo.m
+++ b/matlab/tools/opTomo.m
@@ -51,6 +51,8 @@ classdef opTomo < opSpot
properties ( SetAccess = private, GetAccess = public )
proj_size
vol_size
+ proj_geom
+ vol_geom
end % properties
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -127,6 +129,7 @@ classdef opTomo < opSpot
op.bp_alg_id = bp_alg_id;
op.sino_id = sino_id;
op.vol_id = vol_id;
+
else
% 3D
% only gpu/cuda code for 3D
@@ -156,6 +159,8 @@ classdef opTomo < opSpot
op.vol_size = vol_size;
op.cflag = false;
op.sweepflag = false;
+ op.proj_geom = proj_geom;
+ op.vol_geom = vol_geom;
end % opTomo - constructor