Ask Your Question
0

How to extract only the foreground using the given mask?

asked 2018-11-09 08:35:45 -0600

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)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-11-09 11:00:32 -0600

LBerger gravatar image

updated 2018-11-09 11:04:09 -0600

use copyTo (opencv 4.0) or read this issue

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-11-09 08:35:45 -0600

Seen: 228 times

Last updated: Nov 09 '18