dicomfolder

버전 1.6.0.0 (3.96 KB) 작성자: Dylan O'Connell
Reads all dicom files in a directory and returns one or more 3D images and corresponding metadata.
다운로드 수: 1.1K
업데이트 날짜: 2016/7/7

라이선스 보기

3D CT and MRI images in dicom format are saved by writing a separate file for every slice rather than storing the entire image in a single large file. This function reads all dicom files in a directory and returns one or more 3D matrices containing the image data as well as cell arrays with the corresponding dicom header information.
dicomfolder: imports dicom images.
[image, headers] = dicomfolder(folderName)
Input:
folderName: Name of folder containing dicom images. Image files must have extenstion .dcm, .ima, or no extension. If no argument is passed to the function the user will be prompted to choose a folder.
Output:
image: 3D matrix containing the image data. If more than one image is found, a cell array containing an entry for each image is returned. Slices are sorted according to the Z coordinate of the ImagePositionPatient tag.
headers: Cell array with the metadata for each image. If multiple images are found, headers will be a cell array of cell arrays.

인용 양식

Dylan O'Connell (2024). dicomfolder (https://www.mathworks.com/matlabcentral/fileexchange/52390-dicomfolder), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2011a
모든 릴리스와 호환
플랫폼 호환성
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.6.0.0

Fixed bug that caused .m files and other short extensions to be identified as dicoms.

1.5.0.0

Fixed title.

1.4.0.0

RTStruct files will now be ignored. Fixed bug resulting in an error if filenames were shorter than 4 characters.

1.3.0.0

Corrected description.

1.2.0.0

Updated title.

1.1.0.0

Added my contact information to the comments.

1.0.0.0