Skip to content

Commit d000db7

Browse files
committed
fixes all matlab issues
1 parent 76241b2 commit d000db7

File tree

11 files changed

+168
-346
lines changed

11 files changed

+168
-346
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
% Volume (3D) denoising demo using CCPi-RGL
22
clear; close all
3-
Path1 = sprintf(['..' filesep 'src' filesep 'Matlab' filesep 'mex_compile' filesep 'installed'], 1i);
4-
Path2 = sprintf(['data' filesep], 1i);
5-
Path3 = sprintf(['..' filesep 'src' filesep 'Matlab' filesep 'supp'], 1i);
3+
fsep = '/';
4+
5+
6+
Path1 = sprintf(['..' fsep '..' fsep 'src' fsep 'Matlab' fsep 'mex_compile' fsep 'installed'], 1i);
7+
Path2 = sprintf(['..' fsep 'data' fsep], 1i);
8+
Path3 = sprintf(['..' fsep '..' fsep 'src' fsep 'Matlab' fsep 'supp'], 1i);
69
addpath(Path1);
710
addpath(Path2);
811
addpath(Path3);
@@ -18,7 +21,6 @@
1821
end
1922
vol3D(vol3D < 0) = 0;
2023
figure; imshow(vol3D(:,:,7), [0 1]); title('Noisy image');
21-
2224
%%
2325
fprintf('Denoise a volume using the ROF-TV model (CPU) \n');
2426
lambda_reg = 0.03; % regularsation parameter for all methods
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
clear; close all
33
fsep = '/';
44

5-
Path1 = sprintf(['..' fsep 'src' fsep 'Matlab' fsep 'mex_compile' fsep 'installed'], 1i);
6-
Path2 = sprintf(['data' fsep], 1i);
7-
Path3 = sprintf(['..' fsep 'src' fsep 'Matlab' fsep 'supp'], 1i);
5+
Path1 = sprintf(['..' fsep '..' fsep 'src' fsep 'Matlab' fsep 'mex_compile' fsep 'installed'], 1i);
6+
Path2 = sprintf(['..' fsep 'data' fsep], 1i);
7+
Path3 = sprintf(['..' fsep '..' fsep 'src' fsep 'Matlab' fsep 'supp'], 1i);
88
addpath(Path1);
99
addpath(Path2);
1010
addpath(Path3);
@@ -15,8 +15,8 @@
1515
%%
1616
fprintf('Denoise using the ROF-TV model (CPU) \n');
1717
lambda_reg = 0.03; % regularsation parameter for all methods
18-
iter_rof = 2000; % number of ROF iterations
19-
tau_rof = 0.01; % time-marching constant
18+
iter_rof = 1500; % number of ROF iterations
19+
tau_rof = 0.003; % time-marching constant
2020
epsil_tol = 0.0; % tolerance / 1.0e-06
2121
tic; [u_rof,infovec] = ROF_TV(single(u0), lambda_reg, iter_rof, tau_rof, epsil_tol); toc;
2222
energyfunc_val_rof = TV_energy(single(u_rof),single(u0),lambda_reg, 1); % get energy function value
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
% Image (2D) inpainting demo using CCPi-RGL
22
clear; close all
3-
Path1 = sprintf(['..' filesep 'src' filesep 'Matlab' filesep 'mex_compile' filesep 'installed'], 1i);
4-
Path2 = sprintf(['data' filesep], 1i);
3+
4+
fsep = '/';
5+
6+
Path1 = sprintf(['..' fsep '..' fsep 'src' fsep 'Matlab' fsep 'mex_compile' fsep 'installed'], 1i);
7+
Path2 = sprintf(['..' fsep 'data' fsep], 1i);
8+
Path3 = sprintf(['..' fsep '..' fsep 'src' fsep 'Matlab' fsep 'supp'], 1i);
59
addpath(Path1);
610
addpath(Path2);
11+
addpath(Path3);
712

813
load('SinoInpaint.mat');
914
Sinogram = Sinogram./max(Sinogram(:));

src/Core/regularisers_CPU/MASK_merge_core.c

Lines changed: 0 additions & 262 deletions
This file was deleted.

src/Core/regularisers_CPU/MASK_merge_core.h

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/Matlab/mex_compile/compileCPU_mex_Linux.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@
7777
delete Diffusion_Inpaint_core* NonlocalMarching_Inpaint_core*
7878
fprintf('%s \n', '<<<<<<< Regularisers successfully compiled! >>>>>>>');
7979

80-
pathA2 = sprintf(['..' fsep '..' fsep '..' fsep '..' fsep 'demos'], 1i);
80+
pathA2 = sprintf(['..' fsep '..' fsep '..' fsep '..' fsep 'demos' fsep 'Matlab_demos'], 1i);
8181
cd(pathA2);

0 commit comments

Comments
 (0)