Uneven Illumination/Contrast Correction

조회 수: 24 (최근 30일)
Nadine Truter
Nadine Truter 2020년 11월 10일
답변: Divya Gaddipati 2020년 12월 29일
I am having troubles correcting a microscope image with uneven illumination. I need to count cells in an image, of which are touching. The area I am showing is the section that is darker in the image.
I have tried the following code, and also functions such as: bw2 = imbinarize(I,'adaptive','ForegroundPolarity','dark'); to correct for it. Unfortunately either non-cells stay in the final image or some of the cells that are in a darker area of the image disappear entirely.
(Invertgray is just the original grayscale image, inverted.)
I have included various different results I have gotten:
background = imopen(invertgray, strel('disk', 10));
I2 = invertgray - 1.2*background;
adjust = imadjust(I2);
BW = imbinarize(adjust);

답변 (1개)

Divya Gaddipati
Divya Gaddipati 2020년 12월 29일
Hi,
You could try to perform image enhancement prior to converting it to a binary image.
For non-uniform illumination correction, you could refer to the following page: https://www.mathworks.com/help/images/correcting-nonuniform-illumination.html
Alternatively, you could also explore File Exchange for any submissions on other methods for illumination correction.

카테고리

Help CenterFile Exchange에서 Biomedical Imaging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by