summaryrefslogtreecommitdiffstats
path: root/src/Python/test
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2017-10-11 15:12:42 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2017-10-11 15:48:35 +0100
commit776070e22bf95491275a023f3a5ac00cea356714 (patch)
tree877210bbf7c95696aa37a32ab4efb7f65a650cf2 /src/Python/test
parenta32469e9d96c6039b0a5e8e1b22f577e87484c40 (diff)
downloadregularization-776070e22bf95491275a023f3a5ac00cea356714.tar.gz
regularization-776070e22bf95491275a023f3a5ac00cea356714.tar.bz2
regularization-776070e22bf95491275a023f3a5ac00cea356714.tar.xz
regularization-776070e22bf95491275a023f3a5ac00cea356714.zip
read and plot the hdf5
Diffstat (limited to 'src/Python/test')
-rw-r--r--src/Python/test/readhd5.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/Python/test/readhd5.py b/src/Python/test/readhd5.py
index 1e19e14..b042341 100644
--- a/src/Python/test/readhd5.py
+++ b/src/Python/test/readhd5.py
@@ -25,4 +25,17 @@ 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] \ No newline at end of file
+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()