diff options
author | dkazanc <dkazanc@hotmail.com> | 2019-02-18 10:56:21 +0000 |
---|---|---|
committer | dkazanc <dkazanc@hotmail.com> | 2019-02-18 10:56:21 +0000 |
commit | 69219dd3d69cc644bc858986ba71ee02e8e1952f (patch) | |
tree | 4ab044e40e3446f0a71afb27f0318ca3e7e0a31d /Wrappers/Matlab | |
parent | 4bcfee09d4b8fc23ea231521b4ceb7aaeecf2811 (diff) | |
download | regularization-69219dd3d69cc644bc858986ba71ee02e8e1952f.tar.gz regularization-69219dd3d69cc644bc858986ba71ee02e8e1952f.tar.bz2 regularization-69219dd3d69cc644bc858986ba71ee02e8e1952f.tar.xz regularization-69219dd3d69cc644bc858986ba71ee02e8e1952f.zip |
working TGV3D_CPU version/Matlab
Diffstat (limited to 'Wrappers/Matlab')
-rw-r--r-- | Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m b/Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m index 23cda32..0c331a4 100644 --- a/Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m +++ b/Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m @@ -134,11 +134,11 @@ figure; imshow(u_diff4(:,:,7), [0 1]); title('Diffusion 4thO denoised volume (CP % figure; imshow(u_diff4_g(:,:,7), [0 1]); title('Diffusion 4thO denoised volume (GPU)'); %% fprintf('Denoise using the TGV model (CPU) \n'); -lambda_TGV = 0.05; % regularisation parameter +lambda_TGV = 0.03; % regularisation parameter alpha1 = 1.0; % parameter to control the first-order term alpha0 = 2.0; % parameter to control the second-order term -iter_TGV = 40; % number of Primal-Dual iterations for TGV -tic; u_tgv = TGV(single(vol3D), lambda_TGV, alpha1, alpha0, iter_TGV, 128); toc; +iter_TGV = 500; % number of Primal-Dual iterations for TGV +tic; u_tgv = TGV(single(vol3D), lambda_TGV, alpha1, alpha0, iter_TGV); toc; rmseTGV = RMSE(Ideal3D(:),u_tgv(:)); fprintf('%s %f \n', 'RMSE error for TGV is:', rmseTGV); figure; imshow(u_tgv(:,:,3), [0 1]); title('TGV denoised volume (CPU)'); |