Skip to content
1 change: 1 addition & 0 deletions ir_mex_build.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@

ir_mex_build_mri
ir_mex_build_table
irt_mex_make

% todo: ir_mex_build_penal
14 changes: 8 additions & 6 deletions mex/src/irt_mex_make.m
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
% irt_mex_make.m

if ispc
cd penalty
mex penalty_mex.c mexarg.c 'penalty,diff.c' -DIs_pc -DMmex -outdir ../v7
cd ..
cd mex/src/penalty
% mex penalty_mex.c mexarg.c 'penalty,diff.c' -DIs_pc -DMmex -outdir ../v7
mex penalty_mex.c mexarg.c 'penalty,diff.c' -DIs_pc -DMmex -outdir ../..
Comment thread
kristinazvolanek marked this conversation as resolved.
Outdated
cd ../../..
else
cd penalty
mex -v penalty_mex.c mexarg.c 'penalty,diff.c' -DMmex -outdir ../v7
cd ..
cd mex/src/penalty
% mex -v penalty_mex.c mexarg.c 'penalty,diff.c' -DMmex -outdir ../v7
mex -v penalty_mex.c '../def/mexarg.c' 'penalty,diff.c' -I'../def/' -DMmex -outdir ../..
Comment thread
kristinazvolanek marked this conversation as resolved.
Outdated
cd ../../..
end
5 changes: 3 additions & 2 deletions setup.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
'fbp', ... % FBP (filtered backprojection) code
'general', ... % generic image reconstruction
'graph', ... % graphics routines
'mex', ... % MEX files
'mex/src', ... % MEX source code
Comment thread
kristinazvolanek marked this conversation as resolved.
Outdated
'mri', ... % MRI reconstruction
'mri/fieldmap', ... % MRI B0 field map estimation
'mri-rf/yip-spsp', ... % MRI RF pulse design
Expand Down Expand Up @@ -70,8 +72,7 @@
% e.g., 7.3 and running on earlier 7.0 won't work.
% If you have mex problems, comment out the following line.
% Much of the toolbox will work without mex, just slower.
addpath([irtdir 'mex/v7']);

% addpath([irtdir 'mex/v7']);
Comment thread
kristinazvolanek marked this conversation as resolved.
Outdated

% do not add the paths below if you are using Matlab!
if ir_is_octave
Expand Down