diff options
author | Daniil Kazantsev <dkazanc@hotmail.com> | 2018-04-16 13:38:40 +0100 |
---|---|---|
committer | Daniil Kazantsev <dkazanc@hotmail.com> | 2018-04-16 13:38:40 +0100 |
commit | 80c5a5e5de2aca8d5c7b96f0adc91b5738cc9025 (patch) | |
tree | ebf4da0a18f0af799ae771b52513ac59a1228e1a /Wrappers/Python/ccpi | |
parent | 7ae26b005c5f3d9ca0181ab1cf06b6ee8df5ed69 (diff) | |
download | regularization-80c5a5e5de2aca8d5c7b96f0adc91b5738cc9025.tar.gz regularization-80c5a5e5de2aca8d5c7b96f0adc91b5738cc9025.tar.bz2 regularization-80c5a5e5de2aca8d5c7b96f0adc91b5738cc9025.tar.xz regularization-80c5a5e5de2aca8d5c7b96f0adc91b5738cc9025.zip |
SB TV method CPU/GPU added
Diffstat (limited to 'Wrappers/Python/ccpi')
-rw-r--r-- | Wrappers/Python/ccpi/filters/regularisers.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Wrappers/Python/ccpi/filters/regularisers.py b/Wrappers/Python/ccpi/filters/regularisers.py index 376cc9c..53623c0 100644 --- a/Wrappers/Python/ccpi/filters/regularisers.py +++ b/Wrappers/Python/ccpi/filters/regularisers.py @@ -42,6 +42,25 @@ def FGP_TV(inputData, regularisation_parameter,iterations, else: raise ValueError('Unknown device {0}. Expecting gpu or cpu'\ .format(device)) +def SB_TV(inputData, regularisation_parameter, iterations, + tolerance_param, methodTV, printM, device='cpu'): + if device == 'cpu': + return TV_SB_CPU(inputData, + regularisation_parameter, + iterations, + tolerance_param, + methodTV, + printM) + elif device == 'gpu': + return TV_SB_GPU(inputData, + regularisation_parameter, + iterations, + tolerance_param, + methodTV, + printM) + else: + raise ValueError('Unknown device {0}. Expecting gpu or cpu'\ + .format(device)) def FGP_dTV(inputData, refdata, regularisation_parameter, iterations, tolerance_param, eta_const, methodTV, nonneg, printM, device='cpu'): if device == 'cpu': |