question about dicomwrite function

7 Ansichten (letzte 30 Tage)
yanhong
yanhong am 26 Dez. 2012
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

Antworten (1)

Walter Roberson
Walter Roberson am 31 Dez. 2012
  2 Kommentare
yanhong
yanhong am 31 Dez. 2012
Bearbeitet: yanhong am 1 Jan. 2013
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 am 27 Nov. 2020
Hi. it is the simple and correct answer. Thank you.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by