MATLAB: How to separate the foreground from the background in an image

backgroundforegroundImage Processing Toolboximage segmentation

Hi,
I am working on a project related to image matting. I am trying to separate the foreground of an image from the background. Can anybody please help?

Best Answer