dicom anonymizer mess with header data

5 次查看(过去 30 天)
Hello all,
I have some d-MRI data that I want to anonymize. I'm using the following script in MATLAB, to anonymize and modify some dicom tags but after doing so the dcm2niix fails to correctly convert the dicom file to nifti format. Data has 61 directions (volumes) and 6 B) volumes. here is the MATLAB code:
d = dir('**/*.dcm');
values.StudyInstanceUID = dicomuid;
values.SeriesInstanceUID = dicomuid;
values.InstanceCreationDate = '';
values.StudyDate = '';
values.SeriesDate = '';
values.AcquisitionDate = '';
values.ContentDate = '';
values.PerformedProcedureStepStartDate = '';
values.PerformedProcedureStepID = 'MR';
for p = 1:numel(d)
dicomanon([d(p).folder filesep d(p).name], [d(p).folder filesep d(p).name],'keep', {'PatientID'},'update', values);
dicomanon([d(p).folder filesep d(p).name], [d(p).folder filesep d(p).name]);
p
end
Here is part of what dcm2niix outputs:
dcm2niix -z y ./CMRR_MB2_iPAT2_61D_TR6200_b700_SFOV_AP_10
Chris Rorden's dcm2niiX version 10oct2016 (64-bit Linux)
Found 67 DICOM image(s)
slices stacked despite varying acquisition numbers (if this is not desired please recompile)
slices not stacked: protocol name varies
Slice positions repeated, but number of slices (6) not divisible by number of repeats (6): missing images?
Warning: all images appear to be a single slice - please check slice/vector orientation
Convert 6 DICOM as ./CMRR_MB2_iPAT2_61D_TR6200_b700_SFOV_AP_10/CMRR_MB2_iPAT2_61D_TR6200_b700_SFOV_AP_10 (736x736x1x6)
WARNING: check that 2D images are not mirrored.
compress: "/usr/bin/pigz" -n -f "./CMRR_MB2_iPAT2_61D_TR6200_b700_SFOV_AP_10/CMRR_MB2_iPAT2_61D_TR6200_b700_SFOV_AP_10.nii"
slices stacked despite varying acquisition numbers (if this is not desired please recompile)
slices not stacked: protocol name varies
Error: too many NIFTI images with the name ./CMRR_MB2_iPAT2_61D_TR6200_b700_SFOV_AP_10/CMRR_MB2_iPAT2_61D_TR6200_b700_SFOV_AP_10
slices stacked despite varying acquisition numbers (if this is not desired please recompile)
slices not stacked: protocol name varies
Could someone please let me know what is the problem? and if this is not a good way to anonymize the dicom images what is your suggestion?
Thank you!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 DICOM Format 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by