How to remove background from an image ?
3 次查看(过去 30 天)
显示 更早的评论
How to remove the artificial background colors and characters from an image and only remain the main object ?
I attached a sample image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151057/image.jpeg)
0 个评论
回答(1 个)
Image Analyst
2015-6-10
What are you calling background? And what is "artificial"? What is your definition of "artificial"? You can mask out parts of the image. See my attached demo for that. Can the item for sale in the middle of the picture be any wild colors? Or will they always be grayscale? Please upload 2 or 3 images along with desired output images.
4 个评论
Image Analyst
2015-6-11
Try adjusting the saturation threshold. Or use bwareaopen() to get rid of small blobs.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!