How to estimate a grayscale image background ?
4 views (last 30 days)
Show older comments
Lednion Bazar
on 30 Aug 2014
Commented: Image Analyst
on 30 Aug 2014
Hello there, first question in this forum
I have to analyze automatically a bunch of grayscale images, including the intensity of some zones. I have those zones stored as bw2label's numbers, but I need to substract the background intensity from the medium intensity I have calculated on those areas (the sum of the pixel's intensity divided by the area)
These are fluorescence images, so all the images have a little glow, some little, some more. I was wondering if there is a function in which, you input the image, and it returns the estimated intensity of the background (it would be the medium value of all the points that arent included in the areas (stored as bw2label's numbers)). By the way, those areas are way more intense than the background, so if the function doesn't need to be input the areas to exclude, its not a problem.
Oh, and I am using Image Processing toolbox
Thank you very much for your time, and sorry for my english.
Accepted Answer
Image Analyst
on 30 Aug 2014
You might try a two pass algorithm. The first pass you estimate the blobs. This is what you're doing now. Then you look at what remains. If your background is slowly enough varying that it can be modeled by a 2D polynomial, you take those pixels and put them into polyfitn() by John D'Errico. Then you subtract the estimated background model from the image and now you can do the second/final pass on the background-corrected image. Attached is a demo.
0 Comments
More Answers (0)
See Also
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!