summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniil Kazantsev <dkazanc@hotmail.com>2019-11-26 23:04:11 +0000
committerDaniil Kazantsev <dkazanc@hotmail.com>2019-11-26 23:04:11 +0000
commitccd5ef48846c613d29c6f3a33d99aa69d636a47c (patch)
tree543d3fa2987d97c99f350ab7f827baa0783f622e /src
parent494a857b830fce5e786dfc058f68bf78d9673ba6 (diff)
downloadregularization-ccd5ef48846c613d29c6f3a33d99aa69d636a47c.tar.gz
regularization-ccd5ef48846c613d29c6f3a33d99aa69d636a47c.tar.bz2
regularization-ccd5ef48846c613d29c6f3a33d99aa69d636a47c.tar.xz
regularization-ccd5ef48846c613d29c6f3a33d99aa69d636a47c.zip
corrections
Diffstat (limited to 'src')
-rw-r--r--src/Core/regularisers_CPU/PD_TV_core.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Core/regularisers_CPU/PD_TV_core.c b/src/Core/regularisers_CPU/PD_TV_core.c
index f476a8b..cdce71b 100644
--- a/src/Core/regularisers_CPU/PD_TV_core.c
+++ b/src/Core/regularisers_CPU/PD_TV_core.c
@@ -45,11 +45,15 @@ float PDTV_CPU_main(float *Input, float *U, float *infovector, float lambdaPar,
re = 0.0f; re1 = 0.0f;
int count = 0;
- tau = 1.0/powf(lipschitz_const,0.5);
- sigma = 1.0/powf(lipschitz_const,0.5);
+ //tau = 1.0/powf(lipschitz_const,0.5);
+ //sigma = 1.0/powf(lipschitz_const,0.5);
+ tau = 0.02;
+ sigma = 1.0/(lipschitz_const*tau);
theta = 1.0f;
lt = tau/lambdaPar;
ll = 0;
+
+
DimTotal = (long)(dimX*dimY*dimZ);
copyIm(Input, U, (long)(dimX), (long)(dimY), (long)(dimZ));