diff options
author | algol <dkazanc@hotmail.com> | 2018-05-04 09:38:13 +0100 |
---|---|---|
committer | algol <dkazanc@hotmail.com> | 2018-05-04 09:38:13 +0100 |
commit | 824fafc9d39bfd3a27ffdb29c37f873e6097c3f7 (patch) | |
tree | fd791ddf3e6364b7f568341ca39ce973748c1d2d /Wrappers/Matlab/demos | |
parent | 66b101901f29776486009d165221d03a57316a0e (diff) | |
download | regularization-824fafc9d39bfd3a27ffdb29c37f873e6097c3f7.tar.gz regularization-824fafc9d39bfd3a27ffdb29c37f873e6097c3f7.tar.bz2 regularization-824fafc9d39bfd3a27ffdb29c37f873e6097c3f7.tar.xz regularization-824fafc9d39bfd3a27ffdb29c37f873e6097c3f7.zip |
demos for Diff4thO
Diffstat (limited to 'Wrappers/Matlab/demos')
-rw-r--r-- | Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m | 6 | ||||
-rw-r--r-- | Wrappers/Matlab/demos/demoMatlab_denoise.m | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m b/Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m index ccd47f1..33dfb95 100644 --- a/Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m +++ b/Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m @@ -78,7 +78,7 @@ fprintf('Denoise using Fourth-order anisotropic diffusion model (CPU) \n'); iter_diff = 300; % number of diffusion iterations lambda_regDiff = 3.5; % regularisation for the diffusivity sigmaPar = 0.02; % edge-preserving parameter -tau_param = 0.0025; % time-marching constant +tau_param = 0.0015; % time-marching constant tic; u_diff4 = Diffusion_4thO(single(vol3D), lambda_regDiff, sigmaPar, iter_diff, tau_param); toc; figure; imshow(u_diff4(:,:,15), [0 1]); title('Diffusion 4thO denoised volume (CPU)'); %% @@ -86,7 +86,7 @@ figure; imshow(u_diff4(:,:,15), [0 1]); title('Diffusion 4thO denoised volume (C % iter_diff = 300; % number of diffusion iterations % lambda_regDiff = 3.5; % regularisation for the diffusivity % sigmaPar = 0.02; % edge-preserving parameter -% tau_param = 0.0025; % time-marching constant +% tau_param = 0.0015; % time-marching constant % tic; u_diff4_g = Diffusion_4thO_GPU(single(vol3D), lambda_regDiff, sigmaPar, iter_diff, tau_param); toc; % figure; imshow(u_diff4_g(:,:,15), [0 1]); title('Diffusion 4thO denoised volume (GPU)'); %% @@ -123,4 +123,4 @@ epsil_tol = 1.0e-05; % tolerance eta = 0.2; % Reference image gradient smoothing constant tic; u_fgp_dtv_g = FGP_dTV_GPU(single(vol3D), single(vol3D_ref), lambda_reg, iter_fgp, epsil_tol, eta); toc; figure; imshow(u_fgp_dtv_g(:,:,15), [0 1]); title('FGP-dTV denoised volume (GPU)'); -%%
\ No newline at end of file +%% diff --git a/Wrappers/Matlab/demos/demoMatlab_denoise.m b/Wrappers/Matlab/demos/demoMatlab_denoise.m index 30ad79d..df47bdc 100644 --- a/Wrappers/Matlab/demos/demoMatlab_denoise.m +++ b/Wrappers/Matlab/demos/demoMatlab_denoise.m @@ -71,7 +71,7 @@ fprintf('Denoise using Fourth-order anisotropic diffusion model (CPU) \n'); iter_diff = 800; % number of diffusion iterations lambda_regDiff = 3.5; % regularisation for the diffusivity sigmaPar = 0.02; % edge-preserving parameter -tau_param = 0.005; % time-marching constant +tau_param = 0.0015; % time-marching constant tic; u_diff4 = Diffusion_4thO(single(u0), lambda_regDiff, sigmaPar, iter_diff, tau_param); toc; figure; imshow(u_diff4, [0 1]); title('Diffusion 4thO denoised image (CPU)'); %% @@ -79,7 +79,7 @@ figure; imshow(u_diff4, [0 1]); title('Diffusion 4thO denoised image (CPU)'); % iter_diff = 800; % number of diffusion iterations % lambda_regDiff = 3.5; % regularisation for the diffusivity % sigmaPar = 0.02; % edge-preserving parameter -% tau_param = 0.005; % time-marching constant +% tau_param = 0.0015; % time-marching constant % tic; u_diff4_g = Diffusion_4thO_GPU(single(u0), lambda_regDiff, sigmaPar, iter_diff, tau_param); toc; % figure; imshow(u_diff4_g, [0 1]); title('Diffusion 4thO denoised image (GPU)'); %% |