How to write a sequence of dicom file ?
2 ビュー (過去 30 日間)
古いコメントを表示
kitty varghese
2018 年 2 月 28 日
コメント済み: Prasad Gianluca Colombage Fernando
2018 年 11 月 26 日
I have a matrix of size 262144x234. I have reshaped this matrix into 512x512x234. Now I want to write this sequence of 243 matrices into a dicom file. Such that I can use it for view on ITK-Snap software.
IMin0=reshape(IMin0,512,[],234);
dicomwrite(IMin0,'original.dcm');
0 件のコメント
採用された回答
Stephen23
2018 年 2 月 28 日
編集済み: Stephen23
2018 年 2 月 28 日
IMin0 = reshape(IMin0,512,512,234);
for k = 1:size(IMin0,3)
fnm = sprintf('file_%d.dcm',k);
dicomwrite(IMin0(:,:,k),fnm)
end
See also:
1 件のコメント
Prasad Gianluca Colombage Fernando
2018 年 11 月 26 日
Hi it's very good your code;do you how do I create a series DICOM after modifying it's HU ?
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!