summaryrefslogtreecommitdiffstats
path: root/Wrappers/Matlab/demos
diff options
context:
space:
mode:
authoralgol <dkazanc@hotmail.com>2018-04-19 13:24:30 +0100
committeralgol <dkazanc@hotmail.com>2018-04-19 13:24:30 +0100
commitb1b26855c4cd5a3e2624b280b64adeda6793b4d7 (patch)
treef3fbf76cfd2350c8794163845dc94c012c04a3a8 /Wrappers/Matlab/demos
parent0e9b9afa6a4c3ddb7afa1437204846c515386d15 (diff)
downloadregularization-b1b26855c4cd5a3e2624b280b64adeda6793b4d7.tar.gz
regularization-b1b26855c4cd5a3e2624b280b64adeda6793b4d7.tar.bz2
regularization-b1b26855c4cd5a3e2624b280b64adeda6793b4d7.tar.xz
regularization-b1b26855c4cd5a3e2624b280b64adeda6793b4d7.zip
Anisotropic Diffusion modules added for 2D/3D CPU/GPU
Diffstat (limited to 'Wrappers/Matlab/demos')
-rw-r--r--Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m b/Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m
index 502b6bd..973d060 100644
--- a/Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m
+++ b/Wrappers/Matlab/demos/demoMatlab_3Ddenoise.m
@@ -62,6 +62,14 @@ tau_param = 0.025; % time-marching constant
tic; u_diff = NonlDiff(single(vol3D), lambda_regDiff, sigmaPar, iter_diff, tau_param, 'Huber'); toc;
figure; imshow(u_diff(:,:,15), [0 1]); title('Diffusion denoised volume (CPU)');
%%
+% fprintf('Denoise a volume using Nonlinear-Diffusion model (GPU) \n');
+% iter_diff = 300; % number of diffusion iterations
+% lambda_regDiff = 0.06; % regularisation for the diffusivity
+% sigmaPar = 0.04; % edge-preserving parameter
+% tau_param = 0.025; % time-marching constant
+% tic; u_diff_g = NonlDiff_GPU(single(vol3D), lambda_regDiff, sigmaPar, iter_diff, tau_param, 'Huber'); toc;
+% figure; imshow(u_diff_g(:,:,15), [0 1]); title('Diffusion denoised volume (GPU)');
+%%
%>>>>>>>>>>>>>> MULTI-CHANNEL priors <<<<<<<<<<<<<<< %
fprintf('Denoise a volume using the FGP-dTV model (CPU) \n');