Limiting Intensity Values of an Image
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (2)
Image Analyst
am 13 Jan. 2013
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 Kommentare
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!