Object extraction from background

5 views (last 30 days)
Lafi Raed
Lafi Raed on 31 Jan 2017
Commented: Image Analyst on 4 Feb 2017
Hello, I have so many image that i need to extract object from them(remove the background) i have tested automatic thresholding to estimate the background gray level, also i hae tried Level set , but both method give good result for some images and poor result for other , i'm asking if there is a robust and good way to do this task. Please can anyone put me in the right direction.
here is an example that contain many object:
here is another one that contain one object:
Thank you

Answers (2)

Image Analyst
Image Analyst on 31 Jan 2017
Edited: Image Analyst on 31 Jan 2017
I'd probably do a texture filter like stdfilt(), maybe ORed with an edge detector, and then threshold and fill the blobs with imfill. Let me know if you can't figure it out. Attach the images without the red graphical outlines on them.
  1 Comment
Lafi Raed
Lafi Raed on 31 Jan 2017
Edited: Lafi Raed on 31 Jan 2017
please can you explain more, also what is ORed with edge detector ?? here is the Original Image you can acces to them

Sign in to comment.


Image Analyst
Image Analyst on 1 Feb 2017
See attached demo. It could be improved, but for 10 minutes work, it's a start.
  10 Comments
Lafi Raed
Lafi Raed on 4 Feb 2017
please can you give me the refernce for the University of Dayton?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!