i want a code for remove background from an image.
古いコメントを表示

this is my image.
回答 (1 件)
Image Analyst
2017 年 11 月 22 日
What do you mean by remove? You can't remove it, but you can set it to something else, like zero or something. Just threshold:
background = grayImage < 50; % or whatever number works
grayImage(background) = 0; % Set background to 0 (black).
2 件のコメント
Ahmad AlZein
2020 年 11 月 20 日
please, can you explain the code
カテゴリ
ヘルプ センター および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!