How to convert Dicom images (.dcm) into '.img' format ?
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi, I have a c ++ program linked through MEX file to a Matlab program. The input to this is only '.img' format. Now I have a few images which are .dcm which cannot be given as input to the program.
Is there any way to convert .dcm to .img format?
댓글 수: 0
답변 (1개)
Walter Roberson
2017년 6월 10일
You can use dicomread() to read the files.
If you look in the File Exchange you will find several programs that can write ENVI img/hdr files
댓글 수: 5
Walter Roberson
2017년 6월 13일
Look at the documentation:
% Usage: save_nii(nii, filename, [old_RGB])
%
% nii.hdr - struct with NIFTI header fields (from load_nii.m or make_nii.m)
%
% nii.img - 3D (or 4D) matrix of NIFTI data.
You passed in a plain data array instead of an appropriate struct.
참고 항목
카테고리
Help Center 및 File Exchange에서 DICOM Format에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!