Skip to content

Commit

Permalink
Merge pull request #634 from HJZollner/develop
Browse files Browse the repository at this point in the history
[BUG FIX] - empty position entry in DICOM header
  • Loading branch information
HJZollner authored Jul 11, 2023
2 parents 986d81c + 728db63 commit ccd11d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion load/dicom_load_tools/read_dcm_header.m
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@
% performed), the respective field does not show up in the dicom file. This
% case needs to be intercepted. Setting to the minimum possible value.
if ~isfield(dcmHeader.sSpecPara.sVoI, 'dInPlaneRot')
dcmHeader.sSpecPara.sVoI.dInPlaneRot = realmin('double');
dcmHeader.sSpecPara.sVoI.dInPlaneRot = realmin('double');
end
if ~isfield(dcmHeader.sSpecPara.sVoI, 'sPosition')
dcmHeader.sSpecPara.sVoI.sPosition.dCor = realmin('double');
end
VoI_Params = {'dCor','dSag','dTra'};
for pp = 1:length(VoI_Params)
Expand Down

0 comments on commit ccd11d1

Please sign in to comment.