diff options
author | Wim van Aarle <wimvanaarle@gmail.com> | 2015-02-24 15:17:38 +0100 |
---|---|---|
committer | Wim van Aarle <wimvanaarle@gmail.com> | 2015-02-24 15:17:38 +0100 |
commit | 9e48494ecc1e4655bd6c25b34bb5c53c80c30d7a (patch) | |
tree | 9943ca9ac4d3f9fff1183a9ee93bceeb0112d88c /test_geometry.m | |
parent | 3f5e4b145c22d2dd512d584cd71bd4ae60c08a49 (diff) | |
download | astra-9e48494ecc1e4655bd6c25b34bb5c53c80c30d7a.tar.gz astra-9e48494ecc1e4655bd6c25b34bb5c53c80c30d7a.tar.bz2 astra-9e48494ecc1e4655bd6c25b34bb5c53c80c30d7a.tar.xz astra-9e48494ecc1e4655bd6c25b34bb5c53c80c30d7a.zip |
fixed get_geometry for fanflat_vec
Diffstat (limited to 'test_geometry.m')
-rw-r--r-- | test_geometry.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test_geometry.m b/test_geometry.m index d8facc3..f846d52 100644 --- a/test_geometry.m +++ b/test_geometry.m @@ -11,14 +11,32 @@ S = I > 0.5; vol_geom2d = astra_create_vol_geom(d,d); vol_geom3d = astra_create_vol_geom(d,d,d); +proj_geom_parallel = astra_create_proj_geom('parallel', 1, 64, 1:180); +proj_geom_fanflat = astra_create_proj_geom('fanflat', 1, 64, 1:180, 0, 2000); +proj_geom_fanflat_vec = astra_geom_2vec(proj_geom_fanflat); %% create data objects vol2d_id = astra_mex_data2d('create', '-vol', vol_geom2d, 0); vol3d_id = astra_mex_data3d('create', '-vol', vol_geom3d, 0); +proj_parallel_id = astra_mex_data2d('create', '-sino', proj_geom_parallel, 0); +proj_fanflat_id = astra_mex_data2d('create', '-sino', proj_geom_fanflat, 0); +proj_fanflatvec_id = astra_mex_data2d('create', '-sino', proj_geom_fanflat_vec, 0); + + %% get geometries vol_geom2d_new = astra_mex_data2d('get_geometry', vol2d_id); vol_geom3d_new = astra_mex_data3d('get_geometry', vol3d_id); +proj_geom_parallel_new = astra_mex_data2d('get_geometry', proj_parallel_id); +proj_geom_fanflat_new = astra_mex_data2d('get_geometry', proj_fanflat_id); +proj_geom_fanflat_vec_new = astra_mex_data2d('get_geometry', proj_fanflatvec_id); + +proj_geom_fanflat_vec +proj_geom_fanflat_vec_new + +proj_geom_fanflat_vec.Vectors(110,:) +proj_geom_fanflat_vec_new.Vectors(110,:) +%% astra_clear;
\ No newline at end of file |