Remove Background from image and select the region of interest
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ittiphat Limsakul
il 5 Gen 2019
Commentato: Image Analyst
il 5 Gen 2019
I have a image

and I want to remove the background and select Yellow and Red and my output should be

How can I do it ?
thanks
0 Commenti
Risposta accettata
Image Analyst
il 5 Gen 2019
Modificato: Image Analyst
il 5 Gen 2019
Try the Color Thresholder app on the Apps tab of the tool ribbon.
After color segmentation, you might also need bwareafilt() or bwareaopen() to get rid of all blobs other than the largest one in the mask (binary image).
mask = bwareafilt(mask, 1); % Extract largest blob only.
2 Commenti
Image Analyst
il 5 Gen 2019
Run the app, then click the Export button. Tell it to generate the code as a function.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!