summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2018-03-08 11:50:19 +0000
committerEdoardo Pasca <edo.paskino@gmail.com>2018-03-08 11:50:19 +0000
commit79eeb48ca1856f093cf5a72f26d437b11f4a0c15 (patch)
tree754c4d2b3ae9425dc89ff0d568827033febe0678 /Wrappers
parentb51914301ba3f7675a600415630a91d81d24074b (diff)
downloadframework-79eeb48ca1856f093cf5a72f26d437b11f4a0c15.tar.gz
framework-79eeb48ca1856f093cf5a72f26d437b11f4a0c15.tar.bz2
framework-79eeb48ca1856f093cf5a72f26d437b11f4a0c15.tar.xz
framework-79eeb48ca1856f093cf5a72f26d437b11f4a0c15.zip
Simple Demo uses the updated VolumeData and SinogramData
Diffstat (limited to 'Wrappers')
-rw-r--r--Wrappers/Python/wip/simple_demo.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Wrappers/Python/wip/simple_demo.py b/Wrappers/Python/wip/simple_demo.py
index a970b3e..de2cc99 100644
--- a/Wrappers/Python/wip/simple_demo.py
+++ b/Wrappers/Python/wip/simple_demo.py
@@ -18,17 +18,16 @@ test_case = 1 # 1=parallel2D, 2=cone2D
# Set up phantom
N = 128
-x = np.zeros((N,N))
+vg = VolumeGeometry(voxel_num_x=N,voxel_num_y=N)
+Phantom = VolumeData(geometry=vg)
+
+x = Phantom.as_array()
x[round(N/4):round(3*N/4),round(N/4):round(3*N/4)] = 1.0
x[round(N/8):round(7*N/8),round(3*N/8):round(5*N/8)] = 2.0
plt.imshow(x)
plt.show()
-vg = VolumeGeometry(N,N,None, 1,1,None)
-
-Phantom = VolumeData(x,geometry=vg)
-
# Set up measurement geometry
angles_num = 20; # angles number