Skip to content

Commit

Permalink
Convert DICOM into NIfTI
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangruili committed Aug 8, 2018
1 parent 3d79ce5 commit ae1d301
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dicm2nii.m
Original file line number Diff line number Diff line change
Expand Up @@ -2516,8 +2516,11 @@ function checkUpdate(mfile)
try
tmp = [tempdir 'tmp/'];
if exist(tmp, 'dir'), rmdir(tmp, 's'); end
unzip(['https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/' ...
'submissions/42997/versions/95/download/zip'], tmp);
unzip(['https://www.mathworks.com/matlabcentral/mlc-downloads/'...
'downloads/e5a13851-4a80-11e4-9553-005056977bd0/' ...
'80e748a3-0ae1-48a5-a2cb-b8380dac0232/packages/zip'], tmp);
% unzip(['https://www.mathworks.com/matlabcentral/mlc-downloads/' ...
% 'downloads/submissions/42997/versions/95/download/zip'], tmp);
a = dir([tmp 'xiangruili*']);
if isempty(a), tdir = tmp; else, tdir = [tmp a(1).name '/']; end
movefile([tdir '*.*'], [fileparts(which(mfile)) '/.'], 'f');
Expand Down

0 comments on commit ae1d301

Please sign in to comment.