summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
authorepapoutsellis <epapoutsellis@gmail.com>2019-04-30 14:52:38 +0100
committerepapoutsellis <epapoutsellis@gmail.com>2019-04-30 14:52:38 +0100
commitcf0efd0a729be773cb6ae9a0f3700267447e2674 (patch)
treef8ff050b3d51e8b8c4e705a5959215891e093b9a /Wrappers
parent3d9d130e4624cbf2b3c340ca2c74e94c7b90b4e3 (diff)
downloadframework-cf0efd0a729be773cb6ae9a0f3700267447e2674.tar.gz
framework-cf0efd0a729be773cb6ae9a0f3700267447e2674.tar.bz2
framework-cf0efd0a729be773cb6ae9a0f3700267447e2674.tar.xz
framework-cf0efd0a729be773cb6ae9a0f3700267447e2674.zip
minor fix demos
Diffstat (limited to 'Wrappers')
-rw-r--r--Wrappers/Python/wip/Demos/PDHG_TGV_Tomo2D.py2
-rw-r--r--Wrappers/Python/wip/Demos/PDHG_TV_Denoising_Poisson.py2
-rw-r--r--Wrappers/Python/wip/Demos/PDHG_Tikhonov_Denoising.py2
-rw-r--r--Wrappers/Python/wip/Demos/PDHG_Tikhonov_Tomo2D.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/Wrappers/Python/wip/Demos/PDHG_TGV_Tomo2D.py b/Wrappers/Python/wip/Demos/PDHG_TGV_Tomo2D.py
index 26578bb..49d4db6 100644
--- a/Wrappers/Python/wip/Demos/PDHG_TGV_Tomo2D.py
+++ b/Wrappers/Python/wip/Demos/PDHG_TGV_Tomo2D.py
@@ -51,7 +51,7 @@ detectors = N
angles = np.linspace(0, np.pi, N, dtype=np.float32)
ag = AcquisitionGeometry('parallel','2D',angles, detectors)
-Aop = AstraProjectorSimple(ig, ag, 'cpu')
+Aop = AstraProjectorSimple(ig, ag, 'gpu')
sin = Aop.direct(data)
# Create noisy data. Apply Poisson noise
diff --git a/Wrappers/Python/wip/Demos/PDHG_TV_Denoising_Poisson.py b/Wrappers/Python/wip/Demos/PDHG_TV_Denoising_Poisson.py
index 58978ae..4903c44 100644
--- a/Wrappers/Python/wip/Demos/PDHG_TV_Denoising_Poisson.py
+++ b/Wrappers/Python/wip/Demos/PDHG_TV_Denoising_Poisson.py
@@ -48,7 +48,7 @@ noisy_data = ImageData(n1)
# Regularisation Parameter
alpha = 2
-method = '0'
+method = '1'
if method == '0':
diff --git a/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Denoising.py b/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Denoising.py
index 3f275e2..041d4ee 100644
--- a/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Denoising.py
+++ b/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Denoising.py
@@ -47,7 +47,7 @@ noisy_data = ImageData(n1)
# Regularisation Parameter
alpha = 4
-method = '1'
+method = '0'
if method == '0':
diff --git a/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Tomo2D.py b/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Tomo2D.py
index 5c03362..f17c4fe 100644
--- a/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Tomo2D.py
+++ b/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Tomo2D.py
@@ -43,7 +43,7 @@ detectors = N
angles = np.linspace(0, np.pi, N, dtype=np.float32)
ag = AcquisitionGeometry('parallel','2D',angles, detectors)
-Aop = AstraProjectorSimple(ig, ag, 'cpu')
+Aop = AstraProjectorSimple(ig, ag, 'gpu')
sin = Aop.direct(data)
# Create noisy data. Apply Gaussian noise