How to convert the int16 medical image in to unit16 image without losing any information..?

4 ビュー (過去 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

採用された回答

Walter Roberson
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.
  1 件のコメント
harshal j
harshal j 2016 年 6 月 10 日
Thank You so much, Walter, for your answer. Yes, I am looking at Hounsfield unit. I am trying to apply nonnegative factorization to images but because of negative values, the algorithm is not applicable to these images. Is there any loss of information when we add minimum value in each pixel to convert it into non-negative values. I am facing problem in converting the pixel values again into Hounsfield unit and if we convert it by using (HU = pixel_value*slope - intercept) then HU values of pixel obtain from the MATLAB are different from the HU value of the same pixel from dicom viewer. I am not getting why it is giving different values, Please help me to solve this problem.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by