question about dicomwrite function

Hi all, I use dicomwrite function to write a three dimensional matrix to a dicom file with MR image storage,but I get a error "Cannot determine photometric interpretation."
example:
x=100*rand(63,53,46);
dicomwrite(x,'x.dcm','ObjectType','MR Image Storage');
??? Error using ==> dicom_prep_ImagePixel>getPhotometricInterp at 90
Cannot determine photometric interpretation.
Thank you

답변 (1개)

Walter Roberson
Walter Roberson 2012년 12월 31일

1 개 추천

댓글 수: 2

yanhong
yanhong 2012년 12월 31일
편집: yanhong 2013년 1월 1일
Thank you for your answer.My syntax is as follows:
x=100*rand(63,53,46);
dicomwrite(reshape(x,[63,53,1,46]),'test.dcm','ObjectType','MR Image Storage');
the above syntax is success.But when I use SPM(Statistical Parametric Mapping) converting dicom data to ananlyze data,I get a error:
"Cant find appropriate modality information"
Thank you
Hassan Saadatmand
Hassan Saadatmand 2020년 11월 27일
Hi. it is the simple and correct answer. Thank you.

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

질문:

2012년 12월 26일

댓글:

2020년 11월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by