Equalizing Images for Background Subtraction

3 views (last 30 days)
Hi;
I have a microscopic image of sperm and also the background of the image. I want to subtract them and then segment the sperms, but the two images are not equal in brightness and contrast, therefore some unwanted parts remain in the result. How can I equalize them? I used "histeq" and "adapthisteq" but the result was not good.
The images are attached.
Thank You :)

Accepted Answer

Image Analyst
Image Analyst on 23 Sep 2017
You need to determine the source of the intensity changes. If it's just that you have a bad lamp, like it's flickering and the whole image is brighter or darker by the same amount, you can just subtract them and pick the appropriate threshold. If there is other junk in the image you have to decide if it's really sperm or some other matter, or it it's really part of the background. If your intensity does not go up or down by a constant, and changes region by region, then you need to equalize each region, for example by adapthisteq() or imbothat(). Not really sure what would cause this kind of "lumpy" changes to the background - lamps usually do it all over the image in the same amount. Maybe you have crickets running over your lamp that change the intensity in different parts of your image????

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!