How to adjust the intensity of series of images?

2 次查看(过去 30 天)
Dear Mathworks,
I have a series of greyscale images, which some of them are darker than the others. How can I adjust their intensity (all together!!)?
Cheers, Violet

采纳的回答

venkat vasu
venkat vasu 2012-8-2
>>help imadjust imadjust Adjust image intensity values or colormap. J = imadjust(I) maps the values in intensity image I to new values in J such that 1% of data is saturated at low and high intensities of I. This increases the contrast of the output image J.
I = imread('pout.tif'); J = imadjust(I); figure, imshow(I), figure, imshow(J)
K = imadjust(I,[0.3 0.7],[]);
figure, imshow(K)
RGB1 = imread('football.jpg');
RGB2 = imadjust(RGB1,[.2 .3 0; .6 .7 1],[]);
figure, imshow(RGB1), figure, imshow(RGB2)
  2 个评论
Violet P
Violet P 2012-8-2
Hi venkat, Thank you for your answer. Actually I have SERIES of images (series of CT images of lung) and because of device error some of them are darker (randomly)! Now I want them all together to be adjusted (as they were taken with a fixed device!)
Image Analyst
Image Analyst 2012-8-3
编辑:Image Analyst 2012-8-3
But they were taken with a fixed device. Or maybe a broken device. Maybe you should have your CT machine serviced. Also, the intensity will vary from slice to slice due to the anatomy so you can't look at the mean. Maybe you have some chance if you can find something that's known to be constant from one slice to the next, like a rib bone or something.
By the way, don't accept "Answers" that aren't solutions to your question lest it discourage other people from answering. Plus it's good if one explains everything in the original post so people don't give solutions to things that aren't your situation and then the questioner has spend more time correcting them and explaining further.

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by