Skip to content

Commit

Permalink
fixes all matlab issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dkazanc committed May 14, 2019
1 parent 76241b2 commit d000db7
Show file tree
Hide file tree
Showing 11 changed files with 168 additions and 346 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
% Volume (3D) denoising demo using CCPi-RGL
clear; close all
Path1 = sprintf(['..' filesep 'src' filesep 'Matlab' filesep 'mex_compile' filesep 'installed'], 1i);
Path2 = sprintf(['data' filesep], 1i);
Path3 = sprintf(['..' filesep 'src' filesep 'Matlab' filesep 'supp'], 1i);
fsep = '/';


Path1 = sprintf(['..' fsep '..' fsep 'src' fsep 'Matlab' fsep 'mex_compile' fsep 'installed'], 1i);
Path2 = sprintf(['..' fsep 'data' fsep], 1i);
Path3 = sprintf(['..' fsep '..' fsep 'src' fsep 'Matlab' fsep 'supp'], 1i);
addpath(Path1);
addpath(Path2);
addpath(Path3);
Expand All @@ -18,7 +21,6 @@
end
vol3D(vol3D < 0) = 0;
figure; imshow(vol3D(:,:,7), [0 1]); title('Noisy image');

%%
fprintf('Denoise a volume using the ROF-TV model (CPU) \n');
lambda_reg = 0.03; % regularsation parameter for all methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
clear; close all
fsep = '/';

Path1 = sprintf(['..' fsep 'src' fsep 'Matlab' fsep 'mex_compile' fsep 'installed'], 1i);
Path2 = sprintf(['data' fsep], 1i);
Path3 = sprintf(['..' fsep 'src' fsep 'Matlab' fsep 'supp'], 1i);
Path1 = sprintf(['..' fsep '..' fsep 'src' fsep 'Matlab' fsep 'mex_compile' fsep 'installed'], 1i);
Path2 = sprintf(['..' fsep 'data' fsep], 1i);
Path3 = sprintf(['..' fsep '..' fsep 'src' fsep 'Matlab' fsep 'supp'], 1i);
addpath(Path1);
addpath(Path2);
addpath(Path3);
Expand All @@ -15,8 +15,8 @@
%%
fprintf('Denoise using the ROF-TV model (CPU) \n');
lambda_reg = 0.03; % regularsation parameter for all methods
iter_rof = 2000; % number of ROF iterations
tau_rof = 0.01; % time-marching constant
iter_rof = 1500; % number of ROF iterations
tau_rof = 0.003; % time-marching constant
epsil_tol = 0.0; % tolerance / 1.0e-06
tic; [u_rof,infovec] = ROF_TV(single(u0), lambda_reg, iter_rof, tau_rof, epsil_tol); toc;
energyfunc_val_rof = TV_energy(single(u_rof),single(u0),lambda_reg, 1); % get energy function value
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
% Image (2D) inpainting demo using CCPi-RGL
clear; close all
Path1 = sprintf(['..' filesep 'src' filesep 'Matlab' filesep 'mex_compile' filesep 'installed'], 1i);
Path2 = sprintf(['data' filesep], 1i);

fsep = '/';

Path1 = sprintf(['..' fsep '..' fsep 'src' fsep 'Matlab' fsep 'mex_compile' fsep 'installed'], 1i);
Path2 = sprintf(['..' fsep 'data' fsep], 1i);
Path3 = sprintf(['..' fsep '..' fsep 'src' fsep 'Matlab' fsep 'supp'], 1i);
addpath(Path1);
addpath(Path2);
addpath(Path3);

load('SinoInpaint.mat');
Sinogram = Sinogram./max(Sinogram(:));
Expand Down
262 changes: 0 additions & 262 deletions src/Core/regularisers_CPU/MASK_merge_core.c

This file was deleted.

56 changes: 0 additions & 56 deletions src/Core/regularisers_CPU/MASK_merge_core.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/Matlab/mex_compile/compileCPU_mex_Linux.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@
delete Diffusion_Inpaint_core* NonlocalMarching_Inpaint_core*
fprintf('%s \n', '<<<<<<< Regularisers successfully compiled! >>>>>>>');

pathA2 = sprintf(['..' fsep '..' fsep '..' fsep '..' fsep 'demos'], 1i);
pathA2 = sprintf(['..' fsep '..' fsep '..' fsep '..' fsep 'demos' fsep 'Matlab_demos'], 1i);
cd(pathA2);
Loading

0 comments on commit d000db7

Please sign in to comment.