diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2017-10-13 16:56:27 +0100 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2017-10-13 16:56:27 +0100 |
commit | 1e2c76ab0be3d541f3aff45ff3d106de313c9106 (patch) | |
tree | 87c9a73ee23148403f754ab70cec539402a56210 /src/Python | |
parent | 2353624fcb8241222e2044cb9d10ffa7c11c87c6 (diff) | |
parent | ad260ad1ab2e44c8c6d3daa9fe9d24c55bf5f280 (diff) | |
download | regularization-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')
-rw-r--r-- | src/Python/test/readhd5.py | 14 | ||||
-rw-r--r-- | src/Python/test_regularizers.py | 1 |
2 files changed, 15 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() diff --git a/src/Python/test_regularizers.py b/src/Python/test_regularizers.py index 665a077..e76262c 100644 --- a/src/Python/test_regularizers.py +++ b/src/Python/test_regularizers.py @@ -46,6 +46,7 @@ def nrmse(im1, im2): # u0 = Im + .05*randn(size(Im)); u0(u0 < 0) = 0; # u = SplitBregman_TV(single(u0), 10, 30, 1e-04); + #filename = r"C:\Users\ofn77899\Documents\GitHub\CCPi-FISTA_reconstruction\data\lena_gray_512.tif" filename = r"/home/ofn77899/Reconstruction/CCPi-FISTA_Reconstruction/data/lena_gray_512.tif" #filename = r'/home/algol/Documents/Python/STD_test_images/lena_gray_512.tif' |