atilimcetin / global-matting

An implementation of global matting algorithm for OpenCV.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pixels of the unknown region

opened this issue · comments

Hello,

Thank you for sharing the implementation.

In this file I do not see where and how you did find the coordinates of the pixels of the unknown region ? I can not see that in any of your functions.

Regards,
BEGUERADJ

The pixels of unknown regions are where the mask value is 128. You can search for 'trimap(y, x) == 128'

@atilimcetin Thank you very much.

You're welcome.