summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python/demos
diff options
context:
space:
mode:
authordkazanc <dkazanc@hotmail.com>2018-10-11 13:58:04 +0100
committerdkazanc <dkazanc@hotmail.com>2018-10-11 13:58:04 +0100
commit6887ae5026e20fa8acad644f040fdab1a085e772 (patch)
treea44be3e78745fbca0ecca1f67585c755f11836c3 /Wrappers/Python/demos
parent56d876e94e67f0d774627378c0527ae7b390e13a (diff)
downloadregularization-6887ae5026e20fa8acad644f040fdab1a085e772.tar.gz
regularization-6887ae5026e20fa8acad644f040fdab1a085e772.tar.bz2
regularization-6887ae5026e20fa8acad644f040fdab1a085e772.tar.xz
regularization-6887ae5026e20fa8acad644f040fdab1a085e772.zip
fixes tests/demos and closes #43
Diffstat (limited to 'Wrappers/Python/demos')
-rw-r--r--Wrappers/Python/demos/demo_cpu_regularisers.py2
-rw-r--r--Wrappers/Python/demos/demo_cpu_vs_gpu_regularisers.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/Wrappers/Python/demos/demo_cpu_regularisers.py b/Wrappers/Python/demos/demo_cpu_regularisers.py
index b94f11c..e99b271 100644
--- a/Wrappers/Python/demos/demo_cpu_regularisers.py
+++ b/Wrappers/Python/demos/demo_cpu_regularisers.py
@@ -36,7 +36,7 @@ filename = os.path.join(".." , ".." , ".." , "data" ,"lena_gray_512.tif")
Im = plt.imread(filename)
Im = np.asarray(Im, dtype='float32')
-Im = Im/255
+Im = Im/255.0
perc = 0.05
u0 = Im + np.random.normal(loc = 0 ,
scale = perc * Im ,
diff --git a/Wrappers/Python/demos/demo_cpu_vs_gpu_regularisers.py b/Wrappers/Python/demos/demo_cpu_vs_gpu_regularisers.py
index e45dc40..3d6e92f 100644
--- a/Wrappers/Python/demos/demo_cpu_vs_gpu_regularisers.py
+++ b/Wrappers/Python/demos/demo_cpu_vs_gpu_regularisers.py
@@ -66,8 +66,8 @@ imgplot = plt.imshow(u0,cmap="gray")
pars = {'algorithm': ROF_TV, \
'input' : u0,\
'regularisation_parameter':0.04,\
- 'number_of_iterations': 1200,\
- 'time_marching_parameter': 0.0025
+ 'number_of_iterations': 4500,\
+ 'time_marching_parameter': 0.00002
}
print ("#############ROF TV CPU####################")
start_time = timeit.default_timer()
@@ -406,8 +406,8 @@ pars = {'algorithm' : LLT_ROF, \
'input' : u0,\
'regularisation_parameterROF':0.04, \
'regularisation_parameterLLT':0.01, \
- 'number_of_iterations' :500 ,\
- 'time_marching_parameter' :0.0025 ,\
+ 'number_of_iterations' :4500 ,\
+ 'time_marching_parameter' :0.00002 ,\
}
print ("#############LLT- ROF CPU####################")