Hi can someone help me with this..
3 views (last 30 days)
Show older comments
I have an image like this.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/462700/image.jpeg)
As you can see in the image the black spots are particles. I just want the particles alone on a white background. I tried various thresholding methods. They give me a Threshold of 145~146 but when I use that, the result is highly noisy and not even close to what I expect but when I use a value of 80 the result obtained is almost fine. But the value 80 was found by guessing and not by any code. Is there someone who can help me with this?
2 Comments
Walter Roberson
on 16 Dec 2020
You sent me email. I am not able to reply to your email because your university blocks my provider.
Answers (1)
Image Analyst
on 16 Dec 2020
I'd try imtophat() and imbothat() -- top hat and bottom hat filters. They basically do an opening or closing to erase the spot and then subtract it from the original. They're made for finding small spots on varying background. Give that a try and write back if you're getting nowhere.
0 Comments
See Also
Categories
Find more on Image Processing Toolbox 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!