alt_dicominfo(img,B​itRange)

Faster and simplest alternative to dicominfo function (only demographic and basic image information)
110.0 次下载
更新时间 2018/1/31

查看许可证

I made this code aiming to avoid the MATLAB DICOMINFO function into my loops. This function may replace the original dicominfo if you only seek demographic and image basic information (described below) from the header. The MATLAB DICOMINFO is very slow due the amount of data indexed. Comparing to the original DICOMINFO in a large MRI DICOM file (4D file), this function may be 100 times faster.
I am not sure if the code will work for every type of DICOM files and I ask you to use this function with responsibility.
Add a dicom (*.dcm) image in variable img and add or not a bit range to search into your image. The code will try to give an oputput as described:
OUTPUT:
DcmInfos.PatientName
DcmInfos.PatientBirth
DcmInfos.PatientID
DcmInfos.PatientSex
DcmInfos.StudyDescrip
DcmInfos.StudyDate
DcmInfos.StudyTime
DcmInfos.SerieDescrip
DcmInfos.SerieTime
DcmInfos.StationName
DcmInfos.EchoTime
DcmInfos.RepetitionTime
DcmInfos.SerieVoxDim
DcmInfos.NumberSlices
DcmInfos.SerieMatrix
DcmInfos.NofVolumes

引用格式

Brunno Machado de Campos (2024). alt_dicominfo(img,BitRange) (https://www.mathworks.com/matlabcentral/fileexchange/65606-alt_dicominfo-img-bitrange), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2017b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 DICOM Format 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

* Now, I add the "NUmber of Volumes (dynamics) for 4D images, modifying the output field Matrix and adding the field NofVolumes

1.0.0.0