How to remove the background of the images?
Show older comments
Hi,
Below are the sample images.

How to remove the background including both the surface and the shadow in the above image?

How to remove the background and only have the human in the above image?

How to remove the white textile fabric background and only have the things on the table for the above image?
For these types of background removal, do they need to be treated separately or is there an universal algo to deal with the images cleverly?
Please advise.
Answers (2)
Rahul
on 20 Nov 2024
0 votes
Please refer to this MATLAB Answer as this is a duplicate question:
Thanks.
Image Analyst
on 21 Nov 2024
0 votes
MATLAB now has the "Segment Anything Model". See https://www.mathworks.com/help/images/getting-started-with-segment-anything-model.html
For an overview: https://blog.roboflow.com/how-to-use-segment-anything-model-sam/
I haven't used it so, sorry -- I don't have any code for it but there is sample code in MATLAB's documentation.
Categories
Find more on Image Segmentation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!