Skip to content

Commit

Permalink
Merge pull request #105 from hMRI-group/add-terrax-newDicomField
Browse files Browse the repository at this point in the history
Read EffectiveEchoTime in new TerraX Dicom format
  • Loading branch information
Barisevrenugur authored Oct 11, 2024
2 parents a03439b + 249d888 commit ffa8444
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Most recent version numbers *should* follow the [Semantic Versioning](https://se
- spatial processing: add explicit mask creation and fix implicit mask (0 to NaN in float images)
- update FIL seste seq parameters in get_metadata_val_classic
- denoising module-first part: Java-Matlab interface for LCPCA denoising
- read EffectiveEchoTime in new TerraX Dicom format

### Fixed
- replace `datestr(now)` with `datetime('now')` in line with [MATLAB recommendation](https://mathworks.com/help/matlab/matlab_prog/replace-discouraged-instances-of-serial-date-numbers-and-date-strings.html)
Expand Down
10 changes: 9 additions & 1 deletion spm12/metadata/get_metadata_val_classic.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,16 @@
end

case 'EchoTime' % [ms]
% Valid for all vendors
% Valid for all vendors:
% try EchoTime first
[nFieldFound, fieldList] = find_field_name(mstruc, 'EchoTime', 'caseSens','sensitive','matchType','exact');
% In some sequences (e.g. the XA implementations of FLASH from Kerrin Pine)
% the EffectiveEchoTime is populated instead of the EchoTime field in the DICOM.
% If EchoTime is not found than search for EffectiveEchoTime:
if ~nFieldFound
[nFieldFound, fieldList] = find_field_name(mstruc,'EffectiveEchoTime', 'caseSens','sensitive','matchType','exact');
end
% Valid for all vendors:
[val,nam] = get_val_nam_list(mstruc, nFieldFound, fieldList);
if nFieldFound
cRes = 1;
Expand Down

0 comments on commit ffa8444

Please sign in to comment.