Skip to content
Permalink
Browse files

Bug fix

  • Loading branch information...
aditiiyer committed Oct 8, 2019
1 parent d65d8ee commit 86d63988ba4c831a3536bbec02d3dc49907dc609
Showing with 8 additions and 4 deletions.
  1. +8 −4 ML_Dicom/Export/export_CT_IOD.m
@@ -140,10 +140,14 @@
attr.addAll(SOPattr);

clear imgattr imgplaneattr imgpixelattr ctimageattr SOPattr

fileNum = num2str(filenumber + nWritten);
filename = fullfile(destDirPath,['IMG_', repmat('0', [1 5-length(fileNum)]), fileNum]);


if ischar(filenumber)
filename = fullfile(filenameRoot,filenumber);
else
fileNum = num2str(filenumber + nWritten);
filename = fullfile(destDirPath,['IMG_', repmat('0', [1 5-length(fileNum)]), fileNum]);
end

writefile_mldcm(attr, filename);

nWritten = nWritten + 1;

0 comments on commit 86d6398

Please sign in to comment.
You can’t perform that action at this time.