How to remove background from an image ?

2 vues (au cours des 30 derniers jours)
Victor Yi
Victor Yi le 10 Juin 2015
Commenté : Image Analyst le 11 Juin 2015
How to remove the artificial background colors and characters from an image and only remain the main object ?
I attached a sample image

Réponses (1)

Image Analyst
Image Analyst le 10 Juin 2015
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 commentaires
Victor Yi
Victor Yi le 11 Juin 2015
Thank you for the sample code ! however it turned out that characters and some of the edges in sample images still remained, is there anything else I should try ?
Image Analyst
Image Analyst le 11 Juin 2015
Try adjusting the saturation threshold. Or use bwareaopen() to get rid of small blobs.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by