pixel values for image created with dicomwrite are different from the matrix pixel values?
Show older comments
I have a 3D matrix (say X) and want to write it as a 3D dicom, Y.dcm with meta data, meta (acquired using dicominfo on some other dicom file)
I conver my 3D matrix, X, into a 4D matrix Y (because the third dimension value of 1 is needed for photometric representation)
Here is the code : dicomwrite(Z,'name',meta,'CreateMode','Copy','MultiframeSingleFile',true) ;
This command WORKS, and gives me a dicom image. HOWEVER, when I look at the pixel intensities (using some other software or using dicomread to read the created dicom) I find that the pixel intensities DO NOT MATCH.
I'm using MRI dicoms . ..... Any thoughts? Suggestions? etc?
3 Comments
Elham Yousefzadeh
on 4 Oct 2018
I have the same problem. did you find any answer for that?
Muzamil
on 4 Oct 2018
Rik
on 5 Oct 2018
In general dicom images (at least CT images) will be saved in uint16, with only 12 bits used. The exact specifications are stored in the dicom header, see the dicom doc.
Answers (0)
Categories
Find more on DICOM Format in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!