how to convert .mat to .dcm

16 views (last 30 days)
Meggie Hwang
Meggie Hwang on 17 Jan 2016
Commented: Somayeh Asadi on 26 Mar 2021
Hi I have a 128x128 matrix I want to convert it to .dcm file What matlab comment I should use

Accepted Answer

Walter Roberson
Walter Roberson on 17 Jan 2016
  9 Comments
Hany
Hany on 24 Jan 2017
Thanks Walter fopr your answer :)
Somayeh Asadi
Somayeh Asadi on 26 Mar 2021
Dear Hany
I wanted to do the same that did to convert a matrix to dicom image. I followed the instructer of Walter Roberson and took the same error:
Error using dicom_prep_ImagePixel>getPhotometricInterp (line 116)
Cannot determine photometric interpretation.
Error in dicom_prep_ImagePixel (line 10)
metadata.(dicom_name_lookup('0028', '0004', dictionary)) = getPhotometricInterp(X, map,
txfr);
Error in dicom_prep_metadata (line 52)
metadata = dicom_prep_ImagePixel(metadata, X, map, txfr, dictionary);
Error in dicom_create_IOD (line 27)
metadata = dicom_prep_metadata(IOD_UID, metadata, X, map, options.txfr, dictionary);
Error in dicomwrite>write_message (line 263)
[attrs, status] = dicom_create_IOD(SOP_UID, X, map, ...
Error in dicomwrite (line 200)
[status, options] = write_message(X, filename, map, metadata, options);
Could you please giude me how to solve it?
Thank you in advance

Sign in to comment.

More Answers (0)

Categories

Find more on Image Processing and Computer Vision in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!