dicomwrite function help needed

조회 수: 3 (최근 30일)
ramakrishna bathini
ramakrishna bathini 2011년 1월 24일
답변: ali jalali 2019년 6월 6일
I have over 100 ct images. With your help I was able to make a 3d box variable. In my work space it shows a variable imstack of 512*512*143.
m=143;
imstack=zeros(512,512,m);
for z=1:m;
n=dicomread([num2str(z),'.ima']);
imstack(:,:,z)=n;
end
dicomwrite(imstack,'X.ima');
How do I write that imstack into a file, say some 'X.ima'? I am having problem with the dicomwrite function.
??? Error using ==> dicom_prep_ImagePixel>getPhotometricInterp at 98
Cannot determine photometric interpretation.
This error pops up when I try to execute the code.

채택된 답변

Sean de Wolski
Sean de Wolski 2011년 1월 24일
  댓글 수: 4
ramakrishna bathini
ramakrishna bathini 2011년 1월 24일
wow this is amazing ...i just typed in v=dicom_read_volume('file name') ..i actually stacked the whole images.....
but i am getting errors with the dicom_write_volume..i am still unable to view that 3d image.
ramakrishna bathini
ramakrishna bathini 2011년 1월 24일
the variable v says too many variables in min and max columns in workspace...do i have to reduce the variable dimensions ???

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

추가 답변 (1개)

ali jalali
ali jalali 2019년 6월 6일
1.JPG

카테고리

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