Limiting Intensity Values of an Image
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I have about 200 CT scans that I need to limit their intensity values between -2048 and 2048. I tried histeq and imadjust but they did not work. I get the best result when I use imshow(image, [-2048,2048]). But I need to save the result data of this imshow.
What can I do?
Best
0 个评论
回答(2 个)
Image Analyst
2013-1-13
Of course histeq() is not what you want. But I don't know why imadjust() didn't work - you must have called it incorrectly. Alternatively you could do
scaledImage = uint8(255 * (single(yourImage) + 2048)/4096);
imwrite(scaledImage, fullFileName);
That will scale your image between -2048 and +2048 and look like what imshow() does.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!