简体   繁体   中英

How to read header of Multiple dicom files in matlab?

Please can anyone tell me a method to read header of multiple dicom(mri) images and store them in a structure

i really need to do this in my project

I would suggest downloading the Statistical Parametric Mapping (SPM) software package for MATLAB. The newest version is SPM8 , and we use it often for our fMRI data processing.

After downloading, unzipping, and adding the package to your MATLAB path, you can use the function spm_dicom_headers to read just the header information from your DICOM files. You can call the function like so:

hdr = spm_dicom_headers(fileArray);

Where fileArray is a character array of strings with one file name/path per row, and hdr is a cell array of header information (one cell per file).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM