Ask Your Question

Revision history [back]

How to extract only the foreground using the given mask?

I have the original image and its mask (I don't have to create one using opencv), I would like to use opencv to extract the foreground with the provided mask.

Eg: original image mask

I want to extract only the human into a new image (where the human mask is given)