필터 지우기
필터 지우기

How to write a sequence of dicom file ?

조회 수: 1 (최근 30일)
kitty varghese
kitty varghese 2018년 2월 28일
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');

채택된 답변

Stephen23
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
Hi it's very good your code;do you how do I create a series DICOM after modifying it's HU ?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by