Limiting Intensity Values of an Image

2 次查看(过去 30 天)
Amadeus
Amadeus 2013-1-13
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

回答(2 个)

Walter Roberson
Walter Roberson 2013-1-13
See the FEX contribution "freezeColors"

Image Analyst
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.

类别

Help CenterFile Exchange 中查找有关 Display Image 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by