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!