How to estimate a grayscale image background ?
조회 수: 4 (최근 30일)
이전 댓글 표시
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.
채택된 답변
Image Analyst
2014년 8월 30일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!