How to convert 4D image dicom to png by slice
4 views (last 30 days)
Show older comments
mohd akmal masud on 30 Aug 2021
Answered: Shadaab Siddiqie on 15 Sep 2021
Anyone know how to convert 4D image dicom to png slice by slice. I try, but have error
[I, cmap] = dicomread('I10');
dcmImagei = squeeze(I); % Check number of images
for k = 1:176
dcmImagei(:,:,k) = uint8(255 * mat2gray( dcmImagei));
imwrite(dcmImagei(:,:,k), sprintf('qqqmyGray%d.png', k));
Unable to perform assignment because the size of the left side is 258-by-258 and the size of
the right side is 258-by-258-by-176.
Shadaab Siddiqie on 15 Sep 2021
From my understanding you want to get slices of your image. You might be able use sliceviewer and orthosliceviewer for this task.
More Answers (0)
Find more on Image Data Acquisition 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!