From 314d780b5a691353344ce0e76a5bb0016cd6f0c2 Mon Sep 17 00:00:00 2001 From: sapje1 Date: Sun, 12 Nov 2023 21:42:25 +0000 Subject: [PATCH] deal with missing DicomHeader.seqorig field in from Siemens Minnesota sequences --- libraries/FID-A/inputOutput/io_loadspec_dicom.m | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libraries/FID-A/inputOutput/io_loadspec_dicom.m b/libraries/FID-A/inputOutput/io_loadspec_dicom.m index cc6816dc..658a5d69 100644 --- a/libraries/FID-A/inputOutput/io_loadspec_dicom.m +++ b/libraries/FID-A/inputOutput/io_loadspec_dicom.m @@ -31,7 +31,19 @@ % Get the header of the first file to make some decisions. DicomHeader = read_dcm_header(filesInFolder{1}); seqtype = DicomHeader.seqtype; -seqorig = DicomHeader.seqorig; + +if isfield(DicomHeader, 'seqorig') + seqorig = DicomHeader.seqorig; +else +% deal with missing seqorig field for dicom data load on Siemens Minnesota +% sequences (Auerbach and Deelchand versions, VB17A & VE11C) + if contains(DicomHeader.sequenceFileName, 'slaser_dkd') %Deelchand/Oz + seqorig = 'CMRR'; + elseif contains(DicomHeader.sequenceFileName, 'eja_svs') %Auerbach/Marjanska + seqorig = 'CMRR'; + end +end + % Extract voxel dimensions % If a parameter is set to zero (e.g. if no voxel rotation is