summaryrefslogtreecommitdiffstats
path: root/src/Python/test
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2017-10-13 16:56:27 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2017-10-13 16:56:27 +0100
commit1e2c76ab0be3d541f3aff45ff3d106de313c9106 (patch)
tree87c9a73ee23148403f754ab70cec539402a56210 /src/Python/test
parent2353624fcb8241222e2044cb9d10ffa7c11c87c6 (diff)
parentad260ad1ab2e44c8c6d3daa9fe9d24c55bf5f280 (diff)
downloadregularization-1e2c76ab0be3d541f3aff45ff3d106de313c9106.tar.gz
regularization-1e2c76ab0be3d541f3aff45ff3d106de313c9106.tar.bz2
regularization-1e2c76ab0be3d541f3aff45ff3d106de313c9106.tar.xz
regularization-1e2c76ab0be3d541f3aff45ff3d106de313c9106.zip
Merge branch 'pythonize' of https://github.com/vais-ral/CCPi-FISTA_Reconstruction into pythonize
Diffstat (limited to 'src/Python/test')
-rw-r--r--src/Python/test/readhd5.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Python/test/readhd5.py b/src/Python/test/readhd5.py
index 406fda9..eff6c43 100644
--- a/src/Python/test/readhd5.py
+++ b/src/Python/test/readhd5.py
@@ -25,4 +25,18 @@ angSize = numpy.asarray(nx.get('/angSize'), dtype=int)[0]
angles_rad = numpy.asarray(nx.get('/angles_rad'))
recon_size = numpy.asarray(nx.get('/recon_size'), dtype=int)[0]
size_det = numpy.asarray(nx.get('/size_det'), dtype=int)[0]
+
slices_tot = numpy.asarray(nx.get('/slices_tot'), dtype=int)[0]
+
+#from ccpi.viewer.CILViewer2D import CILViewer2D
+#v = CILViewer2D()
+#v.setInputAsNumpy(Weights3D)
+#v.startRenderLoop()
+
+import matplotlib.pyplot as plt
+fig = plt.figure()
+
+a=fig.add_subplot(1,1,1)
+a.set_title('noise')
+imgplot = plt.imshow(Weights3D[0].T)
+plt.show()