diff options
author | Daniil Kazantsev <dkazanc@hotmail.com> | 2018-04-17 12:58:28 +0100 |
---|---|---|
committer | Daniil Kazantsev <dkazanc@hotmail.com> | 2018-04-17 12:58:28 +0100 |
commit | d0a33e4f941539ba44a071cfab75d7bf9543990f (patch) | |
tree | ed825ba90ca17448ab07309435095f3612ffe703 /Wrappers/Python/ccpi | |
parent | 7e556922a60e052d24c1e467df13423904729357 (diff) | |
download | regularization-d0a33e4f941539ba44a071cfab75d7bf9543990f.tar.gz regularization-d0a33e4f941539ba44a071cfab75d7bf9543990f.tar.bz2 regularization-d0a33e4f941539ba44a071cfab75d7bf9543990f.tar.xz regularization-d0a33e4f941539ba44a071cfab75d7bf9543990f.zip |
TNV module added
Diffstat (limited to 'Wrappers/Python/ccpi')
-rw-r--r-- | Wrappers/Python/ccpi/filters/regularisers.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Wrappers/Python/ccpi/filters/regularisers.py b/Wrappers/Python/ccpi/filters/regularisers.py index 50c4374..81deea9 100644 --- a/Wrappers/Python/ccpi/filters/regularisers.py +++ b/Wrappers/Python/ccpi/filters/regularisers.py @@ -2,7 +2,7 @@ script which assigns a proper device core function based on a flag ('cpu' or 'gpu') """ -from ccpi.filters.cpu_regularisers_cython import TV_ROF_CPU, TV_FGP_CPU, TV_SB_CPU, dTV_FGP_CPU +from ccpi.filters.cpu_regularisers_cython import TV_ROF_CPU, TV_FGP_CPU, TV_SB_CPU, dTV_FGP_CPU, TNV_CPU from ccpi.filters.gpu_regularisers import TV_ROF_GPU, TV_FGP_GPU, TV_SB_GPU, dTV_FGP_GPU def ROF_TV(inputData, regularisation_parameter, iterations, @@ -86,3 +86,8 @@ def FGP_dTV(inputData, refdata, regularisation_parameter, iterations, else: raise ValueError('Unknown device {0}. Expecting gpu or cpu'\ .format(device)) +def TNV(inputData, regularisation_parameter, iterations, tolerance_param): + return TNV_CPU_pyx(inputData, + regularisation_parameter, + iterations, + tolerance_param) |