intensity correction in images

조회 수: 33 (최근 30일)
Turbulence Analysis
Turbulence Analysis 2021년 5월 31일
댓글: Turbulence Analysis 2021년 6월 24일
Hi,
I intend to correct the intensity in the images which arises due to the non uniformity in the illumination source.
As illustrated in the attched image, due to presence of inhomogeneity associated with the illumination source, the intensity is maximum at left and right side, however it is low on top and bottom. Now I intend to have uniform intensity through out. Is there any way out to achieve this ??
I tried with the normalize option e.g., But I am not succesful ..
normalize ( image data, 'range')

채택된 답변

Image Analyst
Image Analyst 2021년 5월 31일
If that is your illumination source, you need to convert that to a percentage image and then divide your test images by the percentage image.
maxValue = max(illuminationImage(:))
percentageImage = double(illuminationImage) / maxValue;
correctedImage = double(testImage) ./ percentageImage;
Rationale: If the image only has 90% as many photons hitting the scene there, you'd need to divide by 0.9 there to bring it up to the intensity it should have (the intensity it would have if it were illuminated by the full max intensity).
  댓글 수: 16
Image Analyst
Image Analyst 2021년 6월 6일
No. It would be something like
mask = grayImage > someThresholdValue;
maxValue = max(grayImage(:))
grayImage(mask) = maxValue; % Set everything in the ring equal to the max value.
Turbulence Analysis
Turbulence Analysis 2021년 6월 24일
Appologies for being late in responding.. Yes, I am getting the desired results....

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Turbulence Analysis
Turbulence Analysis 2021년 5월 31일
Many thanks..
I have tried, but didn't get the desired results.. I have attached the corrected image, which I have got
I have attached test image, illumination image mat files for your reference.
  댓글 수: 5
Amit
Amit 2021년 6월 5일
You need to normalize intensity of all images and then you segmentation of region of intest will be become uniform.
Adjusting contrast of images so as to cover complete dynamic range of intensity of all pixels.
Please send all of your database images as zip file to amit.kenjale@gmail.com, I will try our some code that will work for all of your images.
Turbulence Analysis
Turbulence Analysis 2021년 6월 5일
Amit,
Thanks for the suggestion. I have attched the .mat file of the sample image here... Please let me know if you get any issues while accessing...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by