How to separate the foreground from the background in an image?
Show older comments
I need to seperate foreground(medicine and coin) from background I tried to crop image(medicine and coin) and use threshold , imclose,imopen
This is my result 

but it dose not perfect.
In my intention I need use same code with all pictures (I drag picture for information)
Do you have any ideal ? Thank you.
Accepted Answer
More Answers (0)
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!