Truncate my image intensity values in the range [-100 400]

2 ビュー (過去 30 日間)
Emerson Nithiyaraj
Emerson Nithiyaraj 2019 年 9 月 10 日
コメント済み: Emerson Nithiyaraj 2019 年 9 月 10 日
Hello,
I have a medical raw CT 'NIFTI' image file of type double where the values of the image are in the range from -2000 to 2004. The values are the Hounsfield units (HU). The image looks like below.
dd.jpg
Now as mentioned in a paper "No special pre-processing was performed except that we truncated the image intensity values of all scans to the range of [-200; 200] HU to ignore irrelevant image details". When i load this image file in an online NIFTI file viewer i could adjust the values and the same image looks like below.
ssss.jpg
But in matlab i want to truncate my image values between -100 and 400 to get a image as dislpayed above. How can i do that?

採用された回答

Walter Roberson
Walter Roberson 2019 年 9 月 10 日
TruncatedImage = max( min(YourImage, 400), -100 );
  3 件のコメント
Walter Roberson
Walter Roberson 2019 年 9 月 10 日
How are you viewing it? Are you using imagesc()? Are you using imshow() with a second parameter of [] ?
Emerson Nithiyaraj
Emerson Nithiyaraj 2019 年 9 月 10 日
with the parameter [] inside imshow

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Image Processing Toolbox についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by