summaryrefslogtreecommitdiffstats
path: root/src/Python/ccpi
diff options
context:
space:
mode:
authordkazanc <dkazanc@hotmail.com>2019-11-27 18:38:59 +0000
committerdkazanc <dkazanc@hotmail.com>2019-11-27 18:38:59 +0000
commitcdef6a981f1772ed04fe44bbe2b8251983a4ba7a (patch)
tree8a839450703c9b2c3284cea7c5298e86fa91267f /src/Python/ccpi
parentccd5ef48846c613d29c6f3a33d99aa69d636a47c (diff)
downloadregularization-cdef6a981f1772ed04fe44bbe2b8251983a4ba7a.tar.gz
regularization-cdef6a981f1772ed04fe44bbe2b8251983a4ba7a.tar.bz2
regularization-cdef6a981f1772ed04fe44bbe2b8251983a4ba7a.tar.xz
regularization-cdef6a981f1772ed04fe44bbe2b8251983a4ba7a.zip
modifications in pdtv
Diffstat (limited to 'src/Python/ccpi')
-rw-r--r--src/Python/ccpi/filters/regularisers.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Python/ccpi/filters/regularisers.py b/src/Python/ccpi/filters/regularisers.py
index d65c0b9..bc745fe 100644
--- a/src/Python/ccpi/filters/regularisers.py
+++ b/src/Python/ccpi/filters/regularisers.py
@@ -53,7 +53,7 @@ def FGP_TV(inputData, regularisation_parameter,iterations,
.format(device))
def PD_TV(inputData, regularisation_parameter, iterations,
- tolerance_param, methodTV, nonneg, lipschitz_const, device='cpu'):
+ tolerance_param, methodTV, nonneg, lipschitz_const, tau, device='cpu'):
if device == 'cpu':
return TV_PD_CPU(inputData,
regularisation_parameter,
@@ -61,7 +61,8 @@ def PD_TV(inputData, regularisation_parameter, iterations,
tolerance_param,
methodTV,
nonneg,
- lipschitz_const)
+ lipschitz_const,
+ tau)
elif device == 'gpu' and gpu_enabled:
return TV_PD_CPU(inputData,
regularisation_parameter,
@@ -69,7 +70,8 @@ def PD_TV(inputData, regularisation_parameter, iterations,
tolerance_param,
methodTV,
nonneg,
- lipschitz_const)
+ lipschitz_const,
+ tau)
else:
if not gpu_enabled and device == 'gpu':
raise ValueError ('GPU is not available')