Problem with dicomwrite pixel values

2 views (last 30 days)
I've been working on a project where I use the DICOM write function to save my files after procesing, values of my matrix go from -1024 to 3072, however, after writing, scale changes and now they're between -2048:2048. My code is as follows:
M=int16(M);
dicomwrite(M,filename,info);
Any help would be truly apreciated.

Answers (0)

Categories

Find more on DICOM Format in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!