Hi can someone help me with this..

2 views (last 30 days)
RAJESHWAR R
RAJESHWAR R on 16 Dec 2020
Answered: Image Analyst on 16 Dec 2020
I have an image like this.
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
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.
RAJESHWAR R
RAJESHWAR R on 16 Dec 2020
sir I have messaged you again.

Sign in to comment.

Answers (1)

Image Analyst
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.

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!