From 9e48494ecc1e4655bd6c25b34bb5c53c80c30d7a Mon Sep 17 00:00:00 2001 From: Wim van Aarle Date: Tue, 24 Feb 2015 15:17:38 +0100 Subject: fixed get_geometry for fanflat_vec --- test_geometry.m | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test_geometry.m') 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 -- cgit v1.2.3