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!