alt_dicominfo(img,BitRange)
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 版本兼容性
平台兼容性
Windows macOS Linux类别
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!