Clearing background of microscopy images
2 views (last 30 days)
Show older comments
Hello Everyone,
I have to measure the size of the blobs in the example image, but I cannot threshold them because some parts of the scratches have similar colors, so either I have to reduce the size of the blobs while thresholding, or I end up with a lot of smaller blobs from the scratches that end up skewing my distribution (like the second image). I have tried blurring the images and thresholding individual color channels (the scratches have higher average red values), but couldn't get a passable result without losing a lot of my actual features. Can someone point me towards a method/function that can help?
Thanks!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1421283/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1421288/image.png)
0 Comments
Answers (1)
Seyeong Jeon
on 28 Jun 2023
I recommend you to add this line below your example result code.
image = imclose(image, ones(5));
0 Comments
See Also
Categories
Find more on Biomedical Imaging 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!