summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python/demos
diff options
context:
space:
mode:
authoralgol <dkazanc@hotmail.com>2018-05-02 13:11:50 +0100
committeralgol <dkazanc@hotmail.com>2018-05-02 13:11:50 +0100
commit14edd18d07c871c0a355d70e68350a899014dbc7 (patch)
tree2b6ffc91561a78455931730f9b3a760eebb201ba /Wrappers/Python/demos
parent7066b1122a11bba244777052b24c103e612f7977 (diff)
downloadregularization-14edd18d07c871c0a355d70e68350a899014dbc7.tar.gz
regularization-14edd18d07c871c0a355d70e68350a899014dbc7.tar.bz2
regularization-14edd18d07c871c0a355d70e68350a899014dbc7.tar.xz
regularization-14edd18d07c871c0a355d70e68350a899014dbc7.zip
bugs in NVM fixed
Diffstat (limited to 'Wrappers/Python/demos')
-rw-r--r--Wrappers/Python/demos/demo_cpu_inpainters.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Wrappers/Python/demos/demo_cpu_inpainters.py b/Wrappers/Python/demos/demo_cpu_inpainters.py
index 7f452c1..9197e91 100644
--- a/Wrappers/Python/demos/demo_cpu_inpainters.py
+++ b/Wrappers/Python/demos/demo_cpu_inpainters.py
@@ -55,6 +55,7 @@ plt.imshow(mask)
plt.title('Mask')
plt.show()
#%%
+"""
print ("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
print ("___Inpainting using linear diffusion (2D)__")
print ("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
@@ -111,7 +112,7 @@ fig = plt.figure(3)
plt.suptitle('Performance of nonlinear diffusion inpainting using the CPU')
a=fig.add_subplot(1,2,1)
a.set_title('Missing data sinogram')
-imgplot = plt.imshow(sino_cut,cmap="gray")
+imgplot = plt.imshow(sino_cut_new,cmap="gray")
# set parameters
pars = {'algorithm' : NDF_INP, \
@@ -148,6 +149,7 @@ a.text(0.15, 0.25, txtstr, transform=a.transAxes, fontsize=14,
verticalalignment='top', bbox=props)
imgplot = plt.imshow(ndf_inp_nonlinear, cmap="gray")
plt.title('{}'.format('Nonlinear diffusion inpainting results'))
+"""
#%%
print ("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
print ("Inpainting using nonlocal vertical marching")
@@ -165,7 +167,7 @@ pars = {'algorithm' : NVM_INP, \
'input' : sino_cut_new,\
'maskData' : mask,\
'SW_increment': 1,\
- 'number_of_iterations' :0
+ 'number_of_iterations' : 150
}
start_time = timeit.default_timer()