Remove Background from image and select the region of interest
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Image Analyst
2019 年 1 月 5 日
編集済み: Image Analyst
2019 年 1 月 5 日
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 件のコメント
Image Analyst
2019 年 1 月 5 日
Run the app, then click the Export button. Tell it to generate the code as a function.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!