Image saved as DICOM doesn't match original
Show older comments
Dear all,
I am a medical student postprocessing DICOM images, and wish to save the resulting image (I_blended) back into DICOM format. However, when I use the following:
>>dicomwrite(I_blended, 'I_blended_DICOM')
The resulting DICOM file 'I_blended_DICOM' is different than 'I_blended' in multiple ways:
- The image of 'I_blended_DICOM' is very, very bright (the values are either 0 or 65535, while 'I_blended' as a range of numbers)
- 'I_blended' is a 512*512 double, while 'I_blended_DICOM' is 512*512 uint16
- I am unable to adjust the window/contrast level of 'I_blended_DICOM' in my DICOM viewer, unlike other DICOM images.
I also tried to copy the metadata from an existing DICOM into my save:
>> metadata = dicominfo('IM20');
>> dicomwrite=(I_blended, 'I_blended_DICOM', metadata);
But the resulting 'I_blended_DICOM' is the same as I just described.
Please help! Thank you so much.
Accepted Answer
More 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!