i want a code for remove background from an image.

回答 (1 件)

Image Analyst
Image Analyst 2017 年 11 月 22 日

0 投票

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
Ahmad AlZein 2020 年 11 月 20 日
please, can you explain the code

サインインしてコメントする。

カテゴリ

タグ

質問済み:

2017 年 11 月 22 日

コメント済み:

2020 年 11 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by