summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python/ccpi
diff options
context:
space:
mode:
authorDaniil Kazantsev <dkazanc@hotmail.com>2018-05-01 09:44:07 +0100
committerDaniil Kazantsev <dkazanc@hotmail.com>2018-05-01 09:44:07 +0100
commit09eb48ffbb4ad699e2eefd25678e10dc59d6a177 (patch)
tree8cebd50609d4ba4a634a8c91252d205580b56b4c /Wrappers/Python/ccpi
parent307d0459f6f22ff07e9d0b8d4090a27ba91cddd0 (diff)
downloadregularization-09eb48ffbb4ad699e2eefd25678e10dc59d6a177.tar.gz
regularization-09eb48ffbb4ad699e2eefd25678e10dc59d6a177.tar.bz2
regularization-09eb48ffbb4ad699e2eefd25678e10dc59d6a177.tar.xz
regularization-09eb48ffbb4ad699e2eefd25678e10dc59d6a177.zip
new inpainters
Diffstat (limited to 'Wrappers/Python/ccpi')
-rw-r--r--Wrappers/Python/ccpi/filters/regularisers.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Wrappers/Python/ccpi/filters/regularisers.py b/Wrappers/Python/ccpi/filters/regularisers.py
index eec8c4d..e62c020 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, TNV_CPU, NDF_CPU
+from ccpi.filters.cpu_regularisers import TV_ROF_CPU, TV_FGP_CPU, TV_SB_CPU, dTV_FGP_CPU, TNV_CPU, NDF_CPU, NDF_INPAINT_CPU
from ccpi.filters.gpu_regularisers import TV_ROF_GPU, TV_FGP_GPU, TV_SB_GPU, dTV_FGP_GPU, NDF_GPU
def ROF_TV(inputData, regularisation_parameter, iterations,
@@ -110,3 +110,8 @@ def NDF(inputData, regularisation_parameter, edge_parameter, iterations,
else:
raise ValueError('Unknown device {0}. Expecting gpu or cpu'\
.format(device))
+def NDF_INP(inputData, maskData, regularisation_parameter, edge_parameter, iterations,
+ time_marching_parameter, penalty_type):
+ return NDF_INPAINT_CPU(inputData, maskData, regularisation_parameter,
+ edge_parameter, iterationsNumb,
+ time_marching_parameter, penalty_type)