Background subtraction for image extraction

Hello there, I have to subtract the background from the picture and only focus the pomegranates in the picture. So, can anyone suggest me code for doing this? I need this code to fuirther pursue my project. I have attached the picture along this question block.

Réponses (1)

Image Analyst
Image Analyst le 19 Juil 2020

0 votes

If you just want to get the red ones, try the Color Thresholder app on the Apps tab of the tool ribbon. If you want to do it based on shape of uniformly colored areas, I think you'll have to do transfer learning with a deep learning network, like yolo or something.

Catégories

En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by