How to convert the int16 medical image in to unit16 image without losing any information..?
2 次查看(过去 30 天)
显示 更早的评论
Hi I am working on the medical image whose intensity range is ranging from -2000 to 4000, I want to convert this range into non-negative range (starting from zero) without losing any information. Please help me to solve this problem. Thanks in advance
0 个评论
采纳的回答
Walter Roberson
2016-6-9
编辑:Stephen23
2016-6-10
shifted_data = uint16(YourData + 2000);
However, the range of values you are using tells me that you are looking at Hounsfield units, and if you want to do any calculations based upon those (rather than just displaying the image) then you will need to remember to convert back to signed and subtract off the 2000 again.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!