How I can create muli-frame DICOM from 3-D matrix
3 views (last 30 days)
Show older comments
Hello everybody ! :) I'm trying to combine a sequence of 2-D images in the form 3-D matrix to a DICOM , I don't care about the metadata , I just want one big file of .dcm I tried the following:
dicomwrite(Matrix,'checkMatrix.dcm','MultiframeSingleFile','true')
and I tried the file from:
https://www.mathworks.com/matlabcentral/fileexchange/23237-read-and-write-single-file-dicom-volumes
Can You Please Help me? I feel like I missing something vital from DICOM
2 Comments
Rik
on 25 Feb 2018
What errors are you getting? You should also be aware that many readers can't read 3D dicoms.
Answers (1)
Rik
on 25 Feb 2018
I didn't notice at first, but you supplied true as a string, so the syntax below should at least run without errors.
dicomwrite(Matrix,'checkMatrix.dcm','MultiframeSingleFile',true)
5 Comments
Walter Roberson
on 26 Feb 2018
The permute Rik showed should transform the 476 x 616 x 54 into 476 x 616 x 1 x 54 which should be acceptable. It should not somehow be making the third dimension into length 2.
See Also
Categories
Find more on DICOM Format in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!